Back to Devexpress

RepositoryItemToggleSwitch.EditorToThumbWidthRatio Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtoggleswitch-e6a16a39.md

latest2.0 KB
Original Source

RepositoryItemToggleSwitch.EditorToThumbWidthRatio Property

Gets or sets the editor’s total width relative to the width of the editor’s thumb.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(0F)]
[DXCategory("Behavior")]
public float EditorToThumbWidthRatio { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(0F)>
Public Property EditorToThumbWidthRatio As Single

Property Value

TypeDefaultDescription
Single0

The total width of the editor divided by the thumb width.

|

Remarks

The EditorToThumbWidthRatio property allows you to specify the editor width as a multiple of the thumb width:

For older skins in which thumbs have a rectangular shape, you can modify the ThumbWidth property to customize the width of the thumb itself. This custom value is multiplied according to the EditorToThumbWidthRatio property value to calculate the total editor width.

See Also

RepositoryItemToggleSwitch Class

RepositoryItemToggleSwitch Members

DevExpress.XtraEditors.Repository Namespace