Back to Devexpress

WinExplorerViewStyleOptions.ItemWidth Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-winexplorer-dot-winexplorerviewstyleoptions-e472b27c.md

latest4.1 KB
Original Source

WinExplorerViewStyleOptions.ItemWidth Property

Gets or sets the item width for the current WinExplorerView style.

Namespace : DevExpress.XtraGrid.Views.WinExplorer

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(-1)]
[XtraSerializableProperty]
public int ItemWidth { get; set; }
vb
<DefaultValue(-1)>
<XtraSerializableProperty>
Public Property ItemWidth As Integer

Property Value

TypeDefaultDescription
Int32-1

An Int32 value that is the item width for the current WinExplorerView style.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ItemWidth
WinExplorerViewStyleOptionsCollection

.ExtraLarge .ItemWidth

| | WinExplorerViewStyleOptionsCollection |

.Large .ItemWidth

| | WinExplorerViewStyleOptionsCollection |

.Medium .ItemWidth

| | WinExplorerViewStyleOptionsCollection |

.Small .ItemWidth

| | WinExplorerViewStyleOptionsCollection |

.Tiles .ItemWidth

|

Remarks

By default, items within each WinExplorer View Style have automatically measured widths. You can manually set the item width via the ItemWidth property. The image below demonstrates items within the WinExplorerViewStyle.Tiles style, whose ItemWidth property is set to 400 pixels.

You can set the same item width for all Styles at once via the WinExplorerViewStyleOptionsCollection.SetItemWidth property.

Note

The ItemWidth property has no effect for the WinExplorerViewStyle.Content style.

See Also

SetItemWidth(Int32)

WinExplorer View

WinExplorerViewStyleOptions Class

WinExplorerViewStyleOptions Members

DevExpress.XtraGrid.Views.WinExplorer Namespace