WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MetroSplitButtonRenderer

    Show / Hide Table of Contents

    Class MetroSplitButtonRenderer

    Inheritance
    System.Object
    MetroSplitButtonRenderer
    Implements
    ISplitButtonRenderer
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class MetroSplitButtonRenderer : ISplitButtonRenderer

    Constructors

    MetroSplitButtonRenderer()

    Declaration
    public MetroSplitButtonRenderer()

    Fields

    ArrowColorDefault

    Initializing Solid Brush to paint the button

    Declaration
    public SolidBrush ArrowColorDefault
    Field Value
    Type Description
    System.Drawing.SolidBrush

    DefaultColor

    Color code for Button's Default State

    Declaration
    public string[] DefaultColor
    Field Value
    Type Description
    System.String[]

    DisabledColor

    Color code for Button's Disabled State

    Declaration
    public string[] DisabledColor
    Field Value
    Type Description
    System.String[]

    OnoverColor

    Color code for Button's Actived State

    Declaration
    public string[] OnoverColor
    Field Value
    Type Description
    System.String[]

    PressedColor

    Color code for Button's Pressed State

    Declaration
    public string[] PressedColor
    Field Value
    Type Description
    System.String[]

    Properties

    SplitButton

    Get or Set the SplitButton Value

    Declaration
    public SplitButton SplitButton { get; set; }
    Property Value
    Type Description
    SplitButton

    Methods

    DrawArrow(Int32, Int32, Int32, Int32, PaintEventArgs, Color)

    Arrow have painted, and its size is depends upon the width and heigh. And location is depends upon the left and top value

    Declaration
    public void DrawArrow(int left, int top, int width, int height, PaintEventArgs e, Color ArrowColor)
    Parameters
    Type Name Description
    System.Int32 left
    System.Int32 top
    System.Int32 width
    System.Int32 height
    System.Windows.Forms.PaintEventArgs e
    System.Drawing.Color ArrowColor

    DrawBorder(PaintEventArgs, Int32, Int32, Int32, Color, Color, Color, Color, Color)

    Creating the Border appearence of the Button And the Visual Style may achive throgh the Colors as an input

    Declaration
    public void DrawBorder(PaintEventArgs e, int width, int height, int splitwidth, Color outerColor, Color innerColor, Color arrowOuter, Color arrowInner, Color buttonInner)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e
    System.Int32 width
    System.Int32 height
    System.Int32 splitwidth
    System.Drawing.Color outerColor
    System.Drawing.Color innerColor
    System.Drawing.Color arrowOuter
    System.Drawing.Color arrowInner
    System.Drawing.Color buttonInner

    DrawText(PaintEventArgs, String, Font, Color, Int32, Int32, Int32)

    Rendering of text.

    Declaration
    public void DrawText(PaintEventArgs e, string text, Font font, Color color, int totalwidth, int totalheight, int splitwidth)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e
    System.String text
    System.Drawing.Font font
    System.Drawing.Color color
    System.Int32 totalwidth
    System.Int32 totalheight
    System.Int32 splitwidth

    Implements

    ISplitButtonRenderer
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved