CssRect

TheArtOfDev.HtmlRenderer.Core.Dom

Represents a word inside an inline box

Конструкторы

CssRect(CssBox)

Init.

owner
the CSS box owner of the word

Свойства

ActualWordSpacing : double

Gets the actual width of whitespace between words.

Bottom : double

Gets or sets the bottom of the rectangle. When setting, it only affects the Height of the rectangle.

FullWidth : double

Get the full width of the word including the spacing.

HasSpaceAfter : bool

was there a whitespace after the word chars (before trim)

HasSpaceBefore : bool

was there a whitespace before the word chars (before trim)

Height : double

Height of the rectangle

Image : RImage

Gets the image this words represents (if one exists)

IsImage : bool

Gets if the word represents an image.

IsLineBreak : bool

Gets if the word is composed by only a line break

IsSpaces : bool

Gets a bool indicating if this word is composed only by spaces. Spaces include tabs and line breaks

Left : double

Left of the rectangle

LeftGlyphPadding : double

Gets or sets an offset to be considered in measurements

OwnerBox : CssBox

Gets the Box where this word belongs.

Rectangle : RRect

Gets or sets the bounds of the rectangle

Right : double

Gets or sets the right of the rectangle. When setting, it only affects the Width of the rectangle.

Selected : bool

is the word is currently selected

SelectedEndIndexOffset : int

the selection end index if the word is partially selected (-1 if not selected or fully selected)

SelectedEndOffset : double

the selection end offset if the word is partially selected (-1 if not selected or fully selected)

SelectedStartIndex : int

the selection start index if the word is partially selected (-1 if not selected or fully selected)

SelectedStartOffset : double

the selection start offset if the word is partially selected (-1 if not selected or fully selected)

Selection : SelectionHandler

If the word is selected this points to the selection handler for more data

Text : string

Gets the text of the word

Top : double

Top of the rectangle

Width : double

Width of the rectangle

Методы

ToString() : string

Represents this word for debugging purposes

Поля

_ownerBox : CssBox

the CSS box owner of the word

_rect : RRect

Rectangle

_selection : SelectionHandler

If the word is selected this points to the selection handler for more data