Ribbon for WinForms | ComponentOne
C1.Framework Namespace / Style Class
Fields Properties Methods Events


In This Topic
    Style Class Members
    In This Topic

    The following tables list the members exposed by Style.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public FieldThe size of shadow.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the brush used to render the element background.  
    Public PropertyGets or sets the brush provider used to render the element background.  
    Public PropertyGets or sets the System.Drawing.Color used to paint the background.  
    Public PropertyGets or sets the secondary color used to build the background gradient.  
    Public PropertyGets or sets the background image for the element.  
    Public PropertyGets or sets the alignment used to render the background image.  
    Public PropertyGets or sets whether the background image can be flipped for RTL mode.  
    Public PropertyGets or sets the thickness of the padding between the element edges and its content.  
    Public PropertyReturns back image padding which honors current RightToLeft settings.  
    Public PropertyGets or sets the scaling used to render the background image.  
    Public PropertyGets or sets the thickness of the border around the element.  
    Public PropertyGets or sets the brush used to paint the borders around the element.  
    Public PropertyGets or sets the System.Drawing.Color used to draw the border around the element.  
    Public PropertyGets BorderEdges object that defines the colors used to paint each edge of the borders.  
    Public PropertyReturns padding which honors current RightToLeft settings.  
    Public PropertyGets or sets the amount of space between child elements.  
    Public PropertyGets or sets whether text content should be clipped to the element area.  
    Public PropertyGets or sets the radii of the element corners.  
    Public PropertyGets or sets the cursor that should be displayed when the mouse is over elements with this style.  
    Public Propertystatic (Shared in Visual Basic)Gets a reference to the default style.  
    Public PropertyGets or sets the style to be used when the element is disabled.  
    Public PropertyGets or sets the display as block or inline of the element.  
    Public PropertyGets or sets whether the element border is an ellipse (for the dynamic styles only).  
    Public PropertyGets or sets the style flags.  
    Public PropertyGets or sets the font used to paint text within the element.  
    Public PropertyGets or sets whether text bounding rectangle should include padding.  
    Public PropertyGets or sets the brush used to paint the text within the element.  
    Public PropertyGets or sets the System.Drawing.Color used to paint the text.  
    Public PropertyGets or sets the format string used to convert the element value into a string.  
    Public PropertyGets or sets whether to apply gamma correction to the background gradient.  
    Public PropertyGets or sets the System.Drawing.Drawing2D.Blend used to paint the background gradient.  
    Public PropertyGets or sets the System.Drawing.PointF that represents the center of a radial gradient background in percentage units.  
    Public PropertyGets or sets a System.Drawing.Drawing2D.ColorBlend that defines a multicolor gradient.  
    Public PropertyGets or sets the GradientMode used to paint the background.  
    Public PropertyGets or sets the style height (set to -1 to use the default height).  
    Public PropertyGets or sets how elements should be aligned in the horizontal direction.  
    Public PropertyGets or sets the style to be used when the element is hot.  
    Public PropertyGets or sets the HotkeyPrefix value determining how to display hot keys.  
    Public PropertyGets or sets the style to be used when the element is hot and pressed.  
    Public PropertyGets or sets how images should be aligned within the element.  
    Public PropertyGets or sets whether the image should be flipped horizontally for RTL mode.  
    Public PropertyGets or sets how images should be scaled within the element.  
    Public PropertyGets or sets the indentation for the first text element.  
    Public PropertyGets or sets whether the style is locked and cannot be modified.  
    Public PropertyGets or sets the thickness of the margins around the element.  
    Public PropertyReturns margins which honor current RightToLeft settings.  
    Public PropertyGets or sets the style name.  
    Public PropertyGets the owner object, such an XStyleSet.  
    Public PropertyGets or sets the thickness of the padding between the element edges and its content.  
    Public PropertyReturns padding which honors current RightToLeft settings.  
    Public PropertyGets or sets the style to be used when the element is pressed.  
    Public PropertyGets or sets whether the style includes a shadow.  
    Public PropertyGets or sets the direction in which text is rendered.  
    Public PropertyGets or sets how to trim characters that do not fit in the space available.  
    Public PropertyGets or sets how elements should be aligned in the vertical direction.  
    Public PropertyGets or sets the style width (set to -1 to use the default width).  
    Public PropertyGets or sets whether text should be allowed to wrap within the element.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Returns new System.Drawing.SolidBrush if specified color is not System.Drawing.Color.Transparent or null otherwise.  
    Public MethodCreates an instance of the Style class that is identical to the current Style (except for the Locked property, which is always false for clones).  
    Public Methodstatic (Shared in Visual Basic)Returns System.Drawing.SolidBrush.Color if specified brush is a System.Drawing.SolidBrush or System.Drawing.Color.Transparent otherwise.  
    Public MethodCopies all attributes from another Style object.  
    Public MethodOverloaded. Deflates the specified System.Drawing.Rectangle by the values of the current Style margins, padding and border.  
    Public MethodDeflates the specified height by the values of the current Style margins, padding and border.  
    Public MethodDeflates the specified width by the values of the current Style margins, padding and border.  
    Public MethodReleases all resources.  
    Public MethodConverts value to string according to Format property value.  
    Public MethodGets whether this style or any of its sub-styles has a shadow.  
    Public MethodOverloaded. Inflates the specified System.Drawing.Rectangle by the values of the current Style margins, padding and border.  
    Public MethodInflates the specified height by the values of the current Style margins, padding and border.  
    Public MethodInflates the specified width by the values of the current Style margins, padding and border.  
    Public MethodCopies attributes set to non-default values from another Style object.  
    Top
    Protected Methods
     NameDescription
    Protected MethodRaises the StyleChanged event.  
    Top
    Public Events
     NameDescription
    Public EventFires when any elements of the Style change.  
    Top
    See Also