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


Glossary Item Box

Gets or sets the style for the buttons.

Syntax

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

Property Value

ElementWithButtonsStyle setting that determines the style of the element with buttons

Remarks

Buttons can be either scroll buttons, drop-down buttons, or pop-up buttons.

Specify the width of the buttons by setting the ButtonWidth property.

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.