Spread Windows Forms 6.0 Product Documentation
ButtonWidth Property
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWithButtons Class : ButtonWidth Property


Glossary Item Box

Gets or sets the width in pixels of the header buttons.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ButtonWidth As Double
Visual Basic (Usage)Copy Code
Dim instance As ElementWithButtons
Dim value As Double
 
instance.ButtonWidth = value
 
value = instance.ButtonWidth
C# 
public virtual double ButtonWidth {get; set;}

Property Value

Double-precision, floating-point number of the width in pixels

Remarks

Specify the type of buttons to display by setting the ButtonStyle property.

This property does not have an effect if the ButtonStyle property is set to ElementWithButtonsStyle.None.

Example

csharpCopy Code
element.ButtonStyle = FarPoint.Win.ElementWithButtonsStyle.DropDown;
element.ButtonWidth = 5;
Visual BasicCopy Code
element.ButtonStyle = FarPoint.Win.ElementWithButtonsStyle.DropDown
element.ButtonWidth = 5

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.