BorderStyles Enumeration

Specifies a border style for an SGBBaseControl or a control inherited from that.

Namespace: SGBControls.Editors
Assembly: SGBControls

Syntax
public enum BorderStyles

Members
Member Name Description
Flat The control is drawn with a flat border
Raised The control is drawn with a raised border
Sunken The control is drawn with a sunken border
Gradient The control is drawn with a gradient border
Etched The control is drawn with an etched border
Bump The control is drawn with a bumped border


Remarks
Use the members of this enumeration to set the BorderStyle property of the SGBBaseControl or the SGBEditStyleController.

Examples

c#
// Change the BorderStyle of the control
// If the control has a valid SGBEditStyleController, change the BorderStyle of that.
public void SetBorderStyle(SGBBaseControl control)
{
    if(control != null)
    {
       if (control.StyleController != null)
           control.StyleController.BorderStyle = BorderStyles.Flat;
       else
           control.BorderColor = BorderStyles.Flat;
    }
}

vb.net
' Change the BorderStyle of the control 
' If the control has a valid SGBEditStyleController, change the BorderStyle of that. 
Public Sub SetBorderStyle(ByVal control As SGBBaseControl) 
    If control IsNot Nothing Then 
        If control.StyleController IsNot Nothing Then 
            control.StyleController.BorderStyle = BorderStyles.Flat
        Else 
            control.BorderStyle = BorderStyles.Flat
        End If 
    End If 
End Sub 

Known Issues
None

Last edited Mar 30, 2010 at 11:26 AM by scottgblood, version 3

Comments

No comments yet.