Class DocumentFragment
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class DocumentFragment
Constructors
DocumentFragment(RadDocument)
Initializes a new instance of the Document
Declaration
public DocumentFragment(RadDocument document)
Parameters
Rad The document to be added to the fragment. |
DocumentFragment(DocumentSelection)
Initializes a new instance of the Document
Declaration
public DocumentFragment(DocumentSelection documentSelection)
Parameters
Document The document selection to be added to the fragment. |
DocumentFragment(DocumentSelection, Boolean)
Initializes a new instance of the Document
Declaration
public DocumentFragment(DocumentSelection documentSelection, bool includeNonCopyableAnnotationMarkers)
Parameters
Document selection |
System. If true result fragment will contain non-copyable elements like read-only and permission ranges. Otherwise these elements will be removed from the result fragment. |
Properties
IsEmpty
Gets a value indicating whether the fragment is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.
|
IsLastParagraphClosed
Gets or sets a value indicating whether the fragment ends with full empty paragraph.
Declaration
public bool IsLastParagraphClosed { get; set; }
Property Value
System.
|
Methods
CreateFromInline(Inline)
Creates a fragment from Inline.
Declaration
public static DocumentFragment CreateFromInline(Inline inline)
Parameters
Returns
EnumerateChildrenOfType<T>()
Enumerates all children of a specified type.
Declaration
public IEnumerable<T> EnumerateChildrenOfType<T>()
where T : DocumentElement
Returns
System. A collection from the children of the specified type. |
Type Parameters
T
A type deriving from Document |
GetText()
Converts the fragment to plain text.
Declaration
public string GetText()
Returns
System. String containing the text representation of the document. |
ToDocument()
Converts to this instance to a Rad
Declaration
public RadDocument ToDocument()
Returns
Rad The Rad |