Class ListElement
Base class for list element holders like UL, OL elements.
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public abstract class ListElement : BaseElement, IHTMLElement, ICloneable, IDisposable
Constructors
ListElement(IHTMLElement, String)
Initializes a new instance of the ListElement class
Declaration
public ListElement(IHTMLElement parent, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IHTMLElement | parent | Parent element of this object. |
| System.String | name | Name of the element. |
Fields
DEF_SUPP_EVENTS
Supported events.
Declaration
protected static string[] DEF_SUPP_EVENTS
Field Value
| Type |
|---|
| System.String[] |
m_eventHash
Holds all events which this class supports.
Declaration
protected static Hashtable m_eventHash
Field Value
| Type |
|---|
| System.Collections.Hashtable |
Properties
BulletFont
Gets the font for markers drawing when item has bullet style.
Declaration
public Font BulletFont { get; }
Property Value
| Type |
|---|
| System.Drawing.Font |
Indent
Gets or sets the indent from the left of the element. List has space from the left.
Declaration
public int Indent { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
StyleOrdered
Gets a value indicating whether the element has ordered style.
Declaration
public bool StyleOrdered { get; }
Property Value
| Type |
|---|
| System.Boolean |
SupportedEvents
Returns an array of the supported events.
Declaration
public override string[] SupportedEvents { get; }
Property Value
| Type |
|---|
| System.String[] |
Overrides
Methods
CalculateChildPositions(Point, Rectangle)
Overridden. Calculates the position of the element for rendering.
Declaration
protected override BlocksCollection CalculateChildPositions(Point curPosition, Rectangle bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | curPosition | Point instance |
| System.Drawing.Rectangle | bounds | Rectangle instance |
Returns
| Type | Description |
|---|---|
| BlocksCollection | BlockCollection object |
Overrides
DrawBlock(Block, PaintEventArgs)
Overridden. Draws an element on the control.
Declaration
protected override void DrawBlock(Block block, PaintEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| Block | block | Current block. |
| System.Windows.Forms.PaintEventArgs | e | Paint arguments. |
Overrides
GetItemStyle(LIElementImpl)
Returns the marker style of the item.
Declaration
public ListItemType GetItemStyle(LIElementImpl item)
Parameters
| Type | Name | Description |
|---|---|---|
| LIElementImpl | item | Item of the list. |
Returns
| Type | Description |
|---|---|
| ListItemType | Marker style of the item. |
InitializeElement()
Overridden. Initializes an element.
Declaration
protected override void InitializeElement()
Overrides
MoveFinalCurPos(ref Point)
Overridden. Moves current position of the parent element down after this element.
Declaration
protected override void MoveFinalCurPos(ref Point currentPos)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | currentPos | Current global position. |
Overrides
MoveStartCurPos(ref Point)
Overridden. Moves current position of the parent element down before.
Declaration
protected override void MoveStartCurPos(ref Point currentPos)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | currentPos | Current global position. |
Overrides
OnDispose()
Overridden. Disposes element.
Declaration
protected override void OnDispose()