Class PREElementImpl
Class that is responsible for <PRE> Tag.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
[ElementTag("pre")]
public class PREElementImpl : BaseElement, IHTMLElement, ICloneable, IDisposable
Constructors
PREElementImpl(IHTMLElement)
Initializes a new instance of the PREElementImpl class
Declaration
public PREElementImpl(IHTMLElement parent)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | parent | Parent element. |
Properties
OwnFormat
Overridden. Gets or sets the format which defines special visualization for this element.
Declaration
protected override HTMLFormat OwnFormat { get; }
Property Value
Type |
---|
HTMLFormat |
Overrides
SupportedEvents
Overridden. Returns the array of supported events.
Declaration
public override string[] SupportedEvents { get; }
Property Value
Type |
---|
System.String[] |
Overrides
Methods
CalculateTextPos(Text, Block)
Overridden. Calculates the position of the text elements.
Declaration
protected override void CalculateTextPos(Text node, Block block)
Parameters
Type | Name | Description |
---|---|---|
Text | node | Text object which contains text. |
Block | block | Current block object. |
Overrides
GetRealMaxWidth(String, Int32, HTMLFormat)
Overridden. Calculates the width of the element.
Declaration
protected override int GetRealMaxWidth(string str, int max, HTMLFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | String text of the element. |
System.Int32 | max | Max width. |
HTMLFormat | format | Format object. |
Returns
Type | Description |
---|---|
System.Int32 | Max width of the text. |
Overrides
InFillTextSizeHash()
Overridden. Calculates the size of text elements.
Declaration
protected override Size InFillTextSizeHash()
Returns
Type | Description |
---|---|
System.Drawing.Size | Max size. |
Overrides
MoveFinalCurPos(ref Point)
Overridden. Moves the 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 position. |
Overrides
MoveStartCurPos(ref Point)
Overridden. Moves the 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 position. |
Overrides
Implements
System.ICloneable
System.IDisposable