Class ColorUIAdvRenderer
Represents a class for rendering colors of ColorPickerUIAdv.
Inheritance
System.Object
ColorUIAdvRenderer
Assembly: Syncfusion.Tools.Windows.dll
public class ColorUIAdvRenderer : Object
Constructors
Initialize a new instance of the ColorUIAdvRenderer class.
Declaration
public ColorUIAdvRenderer(ColorPickerUIAdv control)
Parameters
Fields
m_textPoint
Declaration
protected Point m_textPoint
Field Value
| Type |
| System.Drawing.Point |
Properties
Declaration
protected virtual Color BackColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Declaration
protected Rectangle Bounds { get; }
Property Value
| Type |
| System.Drawing.Rectangle |
Declaration
public ColorPickerUIAdv ColorPicker { get; }
Property Value
Declaration
protected virtual Color ForeColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Declaration
protected virtual Color GroupHeaderBackColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Declaration
protected virtual Color HighlightedBorderColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Declaration
protected virtual Color ItemBorderColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Declaration
protected virtual Color SelectedBorderColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Declaration
protected virtual Color SelectedHighlightedBorderColor { get; }
Property Value
| Type |
| System.Drawing.Color |
Methods
CalcTextRectangle(Graphics, ColorUIAdvGroup, ContentAlignment, Rectangle)
Declaration
protected virtual Rectangle CalcTextRectangle(Graphics g, ColorUIAdvGroup group, ContentAlignment align, Rectangle labelBounds)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
g |
|
| ColorUIAdvGroup |
group |
|
| System.Drawing.ContentAlignment |
align |
|
| System.Drawing.Rectangle |
labelBounds |
|
Returns
| Type |
| System.Drawing.Rectangle |
ComputeTextPosition(ColorUIAdvGroup, Rectangle)
Computes to calculate the text position.
Declaration
public virtual void ComputeTextPosition(ColorUIAdvGroup group, Rectangle labelBounds)
Parameters
| Type |
Name |
Description |
| ColorUIAdvGroup |
group |
An instance of the ColorUIAdvGroup.
|
| System.Drawing.Rectangle |
labelBounds |
Bounds for text.
|
Declaration
protected virtual void DrawGroupHeader(Graphics g, ColorUIAdvGroup group)
Parameters
Declaration
protected virtual void DrawGroupInterior(Graphics g, ColorUIAdvGroup group)
Parameters
Declaration
protected virtual void DrawInheritItems(Graphics g, ColorUIAdvGroup group, GroupColorItem colorItem, Rectangle inheritArea)
Parameters
Declaration
protected virtual void DrawInterior(Graphics g)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
g |
|
DrawText(Graphics, ColorUIAdvGroup, Rectangle)
Declaration
public virtual void DrawText(Graphics g, ColorUIAdvGroup group, Rectangle labelBounds)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
g |
An instance of graphics.
|
| ColorUIAdvGroup |
group |
An instance of color group.
|
| System.Drawing.Rectangle |
labelBounds |
The bounds of the text rectangle.
|
Represents the method to draw the interior.
Declaration
public virtual void OnPaint(PaintEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.PaintEventArgs |
e |
An argument value.
|