ImageGear .NET v25.2 - Updated
Layout Property (ImGearThumbnailList)




ImageGear.Web Assembly > ImageGear.Web.UI Namespace > ImGearThumbnailList Class : Layout Property
Gets or sets a value that indicates thumbnail layout in the ImGearThumbnailList control.
Syntax
'Declaration
 
<CategoryAttribute("ImGearThumbnailList Properties")>
<BrowsableAttribute(True)>
<DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
<DescriptionAttribute("Gets or sets the thumbnail layout required in the ImGearThumbnailList control.")>
Public Property Layout As ImGearThumbnailLayout
'Usage
 
Dim instance As ImGearThumbnailList
Dim value As ImGearThumbnailLayout
 
instance.Layout = value
 
value = instance.Layout
[Category("ImGearThumbnailList Properties")]
[Browsable(true)]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Description("Gets or sets the thumbnail layout required in the ImGearThumbnailList control.")]
public ImGearThumbnailLayout Layout {get; set;}
[Category("ImGearThumbnailList Properties")]
[Browsable(true)]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Description("Gets or sets the thumbnail layout required in the ImGearThumbnailList control.")]
public: __property ImGearThumbnailLayout get_Layout();
public: __property void set_Layout( 
   ImGearThumbnailLayout value
);
[Category("ImGearThumbnailList Properties")]
[Browsable(true)]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Description("Gets or sets the thumbnail layout required in the ImGearThumbnailList control.")]
public:
property ImGearThumbnailLayout Layout {
   ImGearThumbnailLayout get();
   void set (    ImGearThumbnailLayout value);
}

Property Value

One of value of type ImGearThumbnailLayout
Remarks

The default value is ImGearThumbnailLayout.VerticalScrollDirection.

To display thumbnails in a grid format, use the option ImGearThumbnailLayout.VerticalScrollDirection. This mode will also display thumbnails in a single vertical column. For this, make sure that the width of your control is just a little wider than the thumbnail width plus allowances for the scroll bar and spacing on each side of the thumbnail(XSpacing and YSpacing in the default mode styling).

To display thumbnails in a single horizontal row, choose the ImGearThumbnailLayout.HorizontalScrollDirection option.

See Also

Reference

ImGearThumbnailList Class
ImGearThumbnailList Members

Is this page helpful?
Yes No
Thanks for your feedback.