[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.Documents.C1TextRange

C1TextRange Class

Represents a text range in a C1Document.

Inheritance
C1TextRange
Namespace: C1.WPF.RichTextBox.Documents
Assembly: C1.WPF.RichTextBox.dll
Syntax
public class C1TextRange

Constructors

Name Description
C1TextRange(C1TextElement, int, int)

Initializes a C1TextRange from text indexes inside a C1TextElement.

C1TextRange(C1TextPointer)

Initializes an empty C1TextRange.

C1TextRange(C1TextPointer, C1TextPointer)

Initializes a C1TextRange.

C1TextRange(C1TextRange)

Initializes a C1TextRange.

Fields

Name Description
ObjectReplacementCharacter

Represents non character content, like images, in the document when transforming to text via the Text property.

Properties

Name Description
BlockBackground

Gets or sets the background of the blocks in the range.

Blocks

Gets the highest level C1Block elements inside the range.

BorderBrush

Gets or sets the border brush of the blocks in the range.

BorderThickness

Gets or sets the border thickness of the blocks in the range.

Cells

Gets the highest level C1TableCell elements inside the range.

ContainedElements

Gets the list of C1TextElement elements contained in the range.

EditRanges

Returns a set of ranges inside this range where edit changes must be applied.

Elements

Gets the list of C1TextElement elements touched by the range.

End

Gets the end position of the range.

FontFamily

Gets or sets the font family of the runs in the range.

FontSize

Gets or sets the font size of the runs in the range.

FontStyle

Gets or sets the font style of the runs in the range.

FontWeight

Gets or sets the font weight of the runs in the range.

Foreground

Gets or sets the foreground of the runs in the range.

Fragment

Gets or sets a new C1Document from the range.

Html

Gets or sets the Html in the range.

InlineAlignment

Gets or sets the inline alignment of the runs in the range.

InlineBackground

Gets or sets the background of the runs in the range.

IsEmpty

Returns whether the range is empty.

IsRowsSelected

Gets or sets a value that indicates whether the whole C1TableRow is selected.

IsTableSelected

Gets or sets a value that indicates whether the whole C1Table is selected.

LineSpacing

Gets or sets the line spacing of the lines in the range.

List

Returns the C1List the range is inside of, or null.

Lists

Gets the list of C1Lists inside this range.

Margin

Gets or sets the margin of the blocks in the range.

Padding

Gets or sets the padding of the blocks in the range.

Runs

Gets the list of C1Run elements inside the range.

SelectedColumnEndIndex

Gets or sets the index of last column in selected table.

SelectedColumnStartIndex

Gets or sets the index of first column in selected table.

Start

Gets the start position of the range.

Table

Gets the table that includes this range, or null otherwise.

TableColumnWidth

Gets or sets the width of the columns inside this range.

TableRowHeight

Gets the height of the rows inside this range.

Tables

Gets the list of C1Tables inside this range.

Text

Gets or sets the text in the range.

TextAlignment

Gets or sets the text alignment of the blocks in the range.

TextDecorations

Gets or sets the text alignment of the blocks in the range.

VerticalAlignment

Gets or sets the vertical alignment of the cells in the range.

Methods

Name Description
CapitalizeWords()

Converts all characters that start words to uppercase, and all other characters to lowercase.

Equals(object)
GetFragment(bool)

get the fragment according to the copyContentCellOnly

GetHashCode()
Intersection(C1TextRange)

Returns the intersection with another range.

Intersects(C1TextRange)

Returns whether this range intersects the parameter range.

TextTagFilter(Tag)

Filters tag symbols that are not included in the Text property.

ToLowercase()

Converts all characters in the range to lower case.

ToUppercase()

Converts all characters in the range to upper case.

ToggleCase()

Toggles the case of all characters in the range.

TrimRuns()

If the range includes part of a C1Run element, it is split so that there are only whole runs inside of it.

Operators

Name Description
operator ==(C1TextRange, C1TextRange)
operator !=(C1TextRange, C1TextRange)

Extension Methods