Class CollapsePrimitive
Represents a collapse/expand primitive.
Inheritance
System.Object
CollapsePrimitive
Implements
System.ICloneable
Assembly: Syncfusion.Shared.Base.dll
public class CollapsePrimitive : Primitive, ICloneable
Constructors
Declaration
public CollapsePrimitive()
Declaration
public CollapsePrimitive(GradientPanelExt owner)
Parameters
Declaration
public CollapsePrimitive(Size size, int position, GradientPanelExt owner)
Parameters
| Type |
Name |
Description |
| System.Drawing.Size |
size |
|
| System.Int32 |
position |
|
| GradientPanelExt |
owner |
|
Properties
Gets or sets value which indicate that primitive is collapse.
Declaration
public bool Collapsed { get; set; }
Property Value
Gets or sets image for collapsed primitive.
Declaration
public Image CollapseImage { get; set; }
Property Value
| Type |
| System.Drawing.Image |
Gets or sets image for expanded primitive.
Declaration
public Image ExpandImage { get; set; }
Property Value
| Type |
| System.Drawing.Image |
Methods
Declaration
public override object Clone()
Returns
Overrides
Draws plus/minus primitive.
Declaration
protected override void DrawBackground(Graphics g)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
g |
|
Overrides
Declaration
protected virtual void OnCollapsedChanged()
Declaration
protected virtual void OnCollapseImageChanged()
Declaration
protected virtual void OnExpandImageChanged()
Declaration
protected override void OnMouseDown(MouseEventArgs args)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
args |
|
Overrides
Declaration
public void SetCollapseState(bool collapse)
Parameters
| Type |
Name |
Description |
| System.Boolean |
collapse |
|
Events
Declaration
public event EventHandler CollapsedChanged
Event Type
Declaration
public event EventHandler CollapseImageChanged
Event Type
Declaration
public event EventHandler CollpaseImageChanged
Event Type
Declaration
public event EventHandler ExpandImageChanged
Event Type
Implements
System.ICloneable