[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1TextRange

C1TextRange Class

Represents a contiguous area in an XML document.

Inheritance
C1TextRange
Namespace: C1.Win.C1Editor
Assembly: C1.Win.C1Editor.4.8.dll
Syntax
public class C1TextRange
Remarks

Each C1TextRange object is defined by a starting, Start, and an ending, End, character position of the type C1TextPointer. C1TextRange objects are used to identify specific portions of a document. C1TextRange objects are independent of the selection. That is, you can define and manipulate a range without changing the selection. You can also define multiple ranges in a document, while there can be only one selection per pane.

Properties

Name Description
End

Gets the end pointer of the range.

Node

Returns an XmlNode which covers the current range.

Start

Gets the start pointer of the range.

Text

Returns or sets the inner text of the text range.

XmlText

Returns or sets the XML text of the text range.

Methods

Name Description
ApplyClass(string)

Applies specified CSS class to the text range.

ApplyClass(string, C1StyleType)

Applies specified CSS class to the text range.

ApplyStyle(string, string)

Applies specified inline style to the range.

ApplyStyle(string, string, C1StyleType)

Applies specified inline style to the range.

ApplyTag(string)

Applies specified tag to the text range.

ClearFormatting()

Removes text and paragraph formatting from the text range.

Clone()

Creates and returns a copy of the current text range.

GetStyleValue(string)

Gets an inline style value by the given CSS property name.

GetStyleValue(string, C1StyleType)

Gets an inline style value by the given CSS property name.

GetTags(C1StyleType, bool)

Gets nodes list by the given C1StyleType value.

IsClassApplied(string)

Returns a value indicating whether the specified CSS class is applied to the C1TextRange.

IsStyleApplied(string)

Returns a value indicating whether the inline style is applied to all text within the C1TextRange.

IsTagApplied(string)

Returns a value indicating whether the specified tag is applied to the C1TextRange.

Move(int, int)

Moves the current range by the specified offset and length.

MoveTo(XmlNode)

Moves the C1TextRange object to the specified XmlNode.

Normalize()

Moves the range pointers to the most inner text.

RemoveClass(string)

Removes specified CSS class from the range.

RemoveStyle(string, string)

Removes the specified inline style.

RemoveTag(string)

Removes specified tag from the C1TextRange.

Select()

Moves selection to the current text range.

SetXmlElement(XmlElement)

Replaces the text range content with the given element of XmlElement type.

Trim()

Moves start and end pointers of the range to exclude leading and trailing white-space characters from the current range.