Class DrawParams
Represents the class for drawing style option of the control.
Inheritance
System.Object
DrawParams
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class DrawParams : Object
Constructors
DrawParams()
Default constructor
Declaration
public DrawParams()
DrawParams(Boolean, Color, RectangleF, ContentAlignment)
Constructor with variables initialization.
Declaration
public DrawParams(bool enabled, Color back, RectangleF bounds, ContentAlignment align)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enabled | |
| System.Drawing.Color | back | |
| System.Drawing.RectangleF | bounds | |
| System.Drawing.ContentAlignment | align |
DrawParams(Boolean, Color, RectangleF, ContentAlignment, Boolean)
Initializes a new instance of the DrawParams class with specified parameters.
Declaration
public DrawParams(bool enabled, Color back, RectangleF bounds, ContentAlignment align, bool bRightToLeft)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enabled | Indicates whether the drawing is enabled. |
| System.Drawing.Color | back | The background color to be used. |
| System.Drawing.RectangleF | bounds | The bounding rectangle for the drawing. |
| System.Drawing.ContentAlignment | align | The content alignment within the bounds. |
| System.Boolean | bRightToLeft | Indicates whether the layout is right-to-left. |
Properties
Align
Declaration
public ContentAlignment Align { get; set; }
Property Value
| Type |
|---|
| System.Drawing.ContentAlignment |
Bounds
Declaration
public RectangleF Bounds { get; set; }
Property Value
| Type |
|---|
| System.Drawing.RectangleF |
ControlBackColor
Declaration
public Color ControlBackColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
Enabled
Declaration
public bool Enabled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
RightToLeft
Declaration
public bool RightToLeft { get; set; }
Property Value
| Type |
|---|
| System.Boolean |