Inserts a new thumbnail element(s) from an image to the specified index of the WebThumbnailsViewer control and specify the thumbnail text.
public void Insert(
string imageUrl,
int firstPage,
int lastPage,
int thumbIndex,
string text
)
Public Overloads Sub Insert( _
ByVal imageUrl As String, _
ByVal firstPage As Integer, _
ByVal lastPage As Integer, _
ByVal thumbIndex As Integer, _
ByVal text As String _
)
public:
void Insert(
String^ imageUrl,
int firstPage,
int lastPage,
int thumbIndex,
String^ text
)
imageUrl
The image URL or image virtual path to which to add its page(s) as thumbnail(s). Each page will be added as a new thumbnail.
firstPage
The 1-based index of the first page to load.
lastPage
The 1-based index of the last page to load. Must be greater than or equal to firstPage. You can pass -1 to load from firstPage to the last page in the file.
thumbIndex
The 0-based index at which the new thumbnail element(s) should be inserted.
text
The thumbnail item text.
This example replaces the first thumbnail with a "image1.jpg" and set the thumbnail text.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Web.Controls;
public void WebThumbnailViewer_InsertWithText(WebThumbnailViewer webThumbnailViewer)
{
// Check if there is at least one thumbnail to replace.
if (webThumbnailViewer.Count > 1)
{
// Remove the first thumbnail image.
webThumbnailViewer.Remove(0, 0);
// insert a new image into as the first thumbnail.
webThumbnailViewer.Insert(@"Resources\image1.jpg", 1, 1, 0, "The New Image");
}
}
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing
Imports Leadtools.Web.Controls
''' <!--Leadtools.Web.Controls.WebImageViewer.ImageUrl-->
''' <!--Leadtools.Web.Controls.WebImageViewer.ImageUrl-->
''' <!--Leadtools.Web.Controls.WebImageViewer.OpenImageUrl-->
''' <!--Leadtools.Web.Controls.WebImageViewer.OpenImageUrl-->
''' <!--Leadtools.Web.Controls.WebImageViewer.ScrollBarVisible-->
''' <!--Leadtools.Web.Controls.WebImageViewer.ScrollBarVisible-->
''' <!--Leadtools.Web.Controls.WebImageViewer.ApplyCommand-->
''' <!--Leadtools.Web.Controls.WebImageViewer.ApplyCommand-->
''' <!--Leadtools.Web.Controls.WebImageViewer.PropertyChanged-->
''' <!--Leadtools.Web.Controls.WebImageViewer.PropertyChanged-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.AddWithText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.AddWithText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.InsertWithText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.InsertWithText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailImageByText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailImageByText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.SetThumbnailText-->
''' <!--Leadtools.Web.Controls.WebThumbnailViewer.SetThumbnailText-->
Public Sub WebThumbnailViewer_InsertWithText(ByVal webThumbnailViewer As WebThumbnailViewer)
' Check if there is at least one thumbnail to replace.
If webThumbnailViewer.Count > 1 Then
' Remove the first thumbnail image.
webThumbnailViewer.Remove(0, 0)
' insert a new image into as the first thumbnail.
webThumbnailViewer.Insert("Resources\image1.jpg", 1, 1, 0, "The New Image")
End If
End Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.