Class Primitive
Inheritance
System.Object
Primitive
Implements
System.ICloneable
Assembly: Syncfusion.Shared.Base.dll
public class Primitive : Component, ICloneable
Constructors
Declaration
Declaration
public Primitive(GradientPanelExt owner)
Parameters
Declaration
public Primitive(Size size, GradientPanelExt owner)
Parameters
Declaration
public Primitive(Size size, int position, GradientPanelExt owner)
Parameters
Type |
Name |
Description |
System.Drawing.Size |
size |
|
System.Int32 |
position |
|
GradientPanelExt |
owner |
|
Fields
Default size for primitive.
Declaration
protected static readonly Size c_primitiveSize
Field Value
Properties
Gets or set alignment of the primitive.
Declaration
public Alignment Alignment { get; set; }
Property Value
Gets or sets background color for primitive.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or sets border color for primitive.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets rectangle of drawing primitive.
Declaration
protected Rectangle ClientRect { get; }
Property Value
Type |
System.Drawing.Rectangle |
Gets or sets position of the primitive.
Declaration
public int Position { get; set; }
Property Value
Gets or sets border style for primitive.
Declaration
public PrimitiveBorderStyle PrimitiveBorderStyle { get; set; }
Property Value
Gets or sets size of the primitive.
Declaration
public Size Size { get; set; }
Property Value
Gets or sets a value indicating whether the primitive is displayed.
Declaration
public bool Visible { get; set; }
Property Value
Methods
Declaration
public virtual object Clone()
Returns
Declaration
public void Draw(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Declaration
protected virtual void DrawBackground(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Draws border for primitive.
Declaration
protected virtual void DrawBorder(Graphics g, PrimitiveBorderStyle style)
Parameters
Draws border for selected primitive in the designer.
Declaration
protected void DrawSelectedBorder(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Gets center of the primitive.
Declaration
Returns
Type |
System.Drawing.Point |
Declaration
Declaration
protected virtual void OnAlignmentChanged()
Declaration
protected virtual void OnBackColorChanged()
Declaration
protected virtual void OnBorderColorChanged()
Declaration
protected virtual void OnBoundsChanged()
Declaration
protected virtual void OnMouseDown(MouseEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
args |
|
Declaration
protected virtual void OnMouseMove(MouseEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
args |
|
Declaration
protected virtual void OnOwnerControlChanged()
Declaration
protected virtual void OnPositionChanged()
Declaration
protected virtual void OnPrimitiveBorderStyleChanged()
Declaration
protected virtual void OnSelectedChanged()
Declaration
protected virtual void OnSizeChanged()
Declaration
protected virtual void OnVisibleChanged()
Declaration
public override string ToString()
Returns
Events
Declaration
public event EventHandler AlignmentChanged
Event Type
Declaration
public event EventHandler BackColorChanged
Event Type
Declaration
public event EventHandler BorderColorChanged
Event Type
Declaration
public event EventHandler BoundsChanged
Event Type
Declaration
public event MouseEventHandler MouseDown
Event Type
Type |
System.Windows.Forms.MouseEventHandler |
Declaration
public event MouseEventHandler MouseMove
Event Type
Type |
System.Windows.Forms.MouseEventHandler |
Declaration
public event EventHandler OwnerControlChanged
Event Type
Declaration
public event EventHandler PositionChanged
Event Type
Declaration
public event EventHandler PrimitiveBorderStyleChanged
Event Type
Declaration
public event EventHandler PropertyChanged
Event Type
Declaration
public event EventHandler SizeChanged
Event Type
Declaration
public event EventHandler VisibleChanged
Event Type
Implements
System.ICloneable