ImageGear .NET - Updated
ThumbnailCaptionFormat Property (ImGearThumbnailList)




ImageGear24.Web Assembly > ImageGear.Web.UI Namespace > ImGearThumbnailList Class : ThumbnailCaptionFormat Property
Gets or sets the string format for thumbnail caption for all the thumbnails in the control.
Syntax
'Declaration
 
<DescriptionAttribute("Gets or sets the thumbnail caption format.")>
<DefaultValueAttribute()>
<BrowsableAttribute(True)>
<CategoryAttribute("ImGearThumbnailList Properties")>
Public Property ThumbnailCaptionFormat As String
'Usage
 
Dim instance As ImGearThumbnailList
Dim value As String
 
instance.ThumbnailCaptionFormat = value
 
value = instance.ThumbnailCaptionFormat
[Description("Gets or sets the thumbnail caption format.")]
[DefaultValue()]
[Browsable(true)]
[Category("ImGearThumbnailList Properties")]
public string ThumbnailCaptionFormat {get; set;}
[Description("Gets or sets the thumbnail caption format.")]
[DefaultValue()]
[Browsable(true)]
[Category("ImGearThumbnailList Properties")]
public: __property string* get_ThumbnailCaptionFormat();
public: __property void set_ThumbnailCaptionFormat( 
   string* value
);
[Description("Gets or sets the thumbnail caption format.")]
[DefaultValue()]
[Browsable(true)]
[Category("ImGearThumbnailList Properties")]
public:
property String^ ThumbnailCaptionFormat {
   String^ get();
   void set (    String^ value);
}

Property Value

Remarks

The default value is an empty string

This property gets or sets the string format for thumbnail caption for all the thumbnails in the control. The custom formatting supports templated caption. The string will be parsed with the following characters to mean as in the following list. Note:The internal parser expects the characters to be encased within {}. To specify a single literal brace character in the format, specify two opening or closing braces. This follows .NET rules for escaping curly braces.

Note: Each thumbnail displays only one line of caption. If the caption is too long to fit, it will be truncated. If your caption text is too long to fit, you can choose to increase the width of the thumbnail. The only browser that wraps the longer caption is IE7. All newer browsers truncate the text.

Property value = "Title-{DC}:{PC} {P#} of {PP}"

where {PC} was set to “Claims Page ”

The resulting caption for thumbnails will be like:

"Title-MyImage.tif:Claims Page 1 of 150"

Property value = "{DC}:Page {P#}"

The resulting caption for thumbnails will be:

"MyImage.tif:Page 1"

Example
Property value = "Title-{DC}:{PC} {P#} of {PP}"

where {PC} was set to “Claims Page ”

The resulting caption for thumbnails will be like:

"Title-MyImage.tif:Claims Page 1 of 150"

Property value = "{DC}:Page {P#}"

The resulting caption for thumbnails will be:

"MyImage.tif:Page 1"

See Also

Reference

ImGearThumbnailList Class
ImGearThumbnailList Members