New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.DocumentStructure

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentStructureCollection

Inheritance: objectDocumentStructureCollection

Constructors

C#
public DocumentStructureCollection(LayoutBox rootBox)
Parameters:rootBoxLayoutBox
C#
public DocumentStructureCollection(LayoutElement layoutElement)
Parameters:layoutElementLayoutElement

Properties

C#
public BoxParentsStack EnumerationStack { get; }

Methods

C#
public void AddChild(LayoutBox parent, LayoutBox child)
Parameters:parentLayoutBoxchildLayoutBox
C#
public void AddContainerChildBefore(LayoutBox parent, LayoutBox newBox)
Parameters:parentLayoutBoxnewBoxLayoutBox
C#
public void AddContainerChildBox(LayoutBox parent, LayoutBox child)
Parameters:parentLayoutBoxchildLayoutBox
C#
public void AddContainerSiblingAfter(LayoutBox layoutBox, LayoutBox newSibling)
Parameters:layoutBoxLayoutBoxnewSiblingLayoutBox
C#
public void AddContainerSiblingBefore(LayoutBox layoutBox, LayoutBox newSibling)
Parameters:layoutBoxLayoutBoxnewSiblingLayoutBox
C#
public void AddLeafChildBox(LayoutBox parent, LayoutBox child)
Parameters:parentLayoutBoxchildLayoutBox
C#
public void AddLeafSiblingAfter(LayoutBox layoutBox, LayoutBox newSibling)
Parameters:layoutBoxLayoutBoxnewSiblingLayoutBox
C#
public void AddLeafSiblingBefore(LayoutBox layoutBox, LayoutBox newSibling)
Parameters:layoutBoxLayoutBoxnewSiblingLayoutBox
C#
public void AddSiblingAfter(LayoutBox layoutBox, LayoutBox newSibling)
Parameters:layoutBoxLayoutBoxnewSiblingLayoutBox
C#
public void AddSiblingBefore(LayoutBox layoutBox, LayoutBox newSibling)
Parameters:layoutBoxLayoutBoxnewSiblingLayoutBox
C#
public void ClearChildren(LayoutBox layoutBoxParent)
Parameters:layoutBoxParentLayoutBox
C#
public static int GetChildrenCount(LayoutBox box)
Parameters:boxLayoutBoxReturns:

int

C#
public static LayoutBox GetFirstChild(LayoutBox box)
Parameters:boxLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetLastChild(LayoutBox box)
Parameters:boxLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetNextAssociatedLayoutBox(LayoutBox box, DocumentElement associatedDocumentElement)
Parameters:boxLayoutBoxassociatedDocumentElementDocumentElementReturns:

LayoutBox

C#
public static LayoutBox GetNextElementOfSameType(LayoutBox box)
Parameters:boxLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetNextElementOfType(LayoutBox box, Type type)
Parameters:boxLayoutBoxtypeTypeReturns:

LayoutBox

C#
public static LayoutBox GetNextSibling(LayoutBox box)
Parameters:boxLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetNextSiblingForDocumentElement(LayoutBox box, DocumentElement owner)
Parameters:boxLayoutBoxownerDocumentElementReturns:

LayoutBox

C#
public static LayoutBox GetNextSiblingForDocumentElementOnSameLevel(LayoutBox box, DocumentElement owner)
Parameters:boxLayoutBoxownerDocumentElementReturns:

LayoutBox

C#
public static LayoutBox GetParent(LayoutBox child)
Parameters:childLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetPreviousElementOfSameType(LayoutBox box)
Parameters:boxLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetPreviousElementOfType(LayoutBox box, Type type)
Parameters:boxLayoutBoxtypeTypeReturns:

LayoutBox

C#
public static LayoutBox GetPreviousSibling(LayoutBox box)
Parameters:boxLayoutBoxReturns:

LayoutBox

C#
public static LayoutBox GetPreviousSiblingForDocumentElement(LayoutBox box, DocumentElement owner)
Parameters:boxLayoutBoxownerDocumentElementReturns:

LayoutBox

C#
public static LayoutBox GetPreviousSiblingForDocumentElementOnSamelevel(LayoutBox box, DocumentElement owner)
Parameters:boxLayoutBoxownerDocumentElementReturns:

LayoutBox

C#
public DocumentLayoutBox GetRootBox()
Returns:

DocumentLayoutBox

C#
public static bool HasChildren(LayoutBox box)
Parameters:boxLayoutBoxReturns:

bool

C#
public void MergeContainers()
C#
public void MergeContainers(LayoutBox fromBox)
Parameters:fromBoxLayoutBox
C#
public void MergeLongWords(ParagraphLayoutBox paragraphLayoutBox)
Parameters:paragraphLayoutBoxParagraphLayoutBox
C#
public void MergeLongWordsFromBox(InlineLayoutBox layoutBox, DocumentElement associatedDocumentElement)
Parameters:layoutBoxInlineLayoutBoxassociatedDocumentElementDocumentElement
C#
public void MergeTableRowBoxes(TableRowLayoutBox firstRow, TableRowLayoutBox secondRow)
Parameters:firstRowTableRowLayoutBoxsecondRowTableRowLayoutBox
C#
public void MergeTwoLayoutBoxes(LayoutBox firstBox, LayoutBox secondBox, bool shouldFinalizeRemoval = true)
Parameters:firstBoxLayoutBoxsecondBoxLayoutBoxshouldFinalizeRemovalbool
C#
public void RemoveChild(LayoutBox child)
Parameters:childLayoutBox
C#
public void RemoveLastChild(LayoutBox parent)
Parameters:parentLayoutBox
C#
public void RemoveLeafSiblingAfter(LayoutBox layoutBox)
Parameters:layoutBoxLayoutBox
C#
public static void ReplaceLayoutBox(LayoutBox boxWithNodeToUpdate, SpanLayoutBox newNodeValue)
Parameters:boxWithNodeToUpdateLayoutBoxnewNodeValueSpanLayoutBox
C#
public void SplitContainer(LayoutBox boxToSplit, LayoutBox fromLayoutBox, LayoutBox newLayoutBox)
Parameters:boxToSplitLayoutBoxfromLayoutBoxLayoutBoxnewLayoutBoxLayoutBox
C#
public override string ToString()
Returns:

string

Overrides: object.ToString()

In this article
DefinitionConstructorsDocumentStructureCollection(LayoutBox)DocumentStructureCollection(LayoutElement)PropertiesEnumerationStackMethodsAddChild(LayoutBox, LayoutBox)AddContainerChildBefore(LayoutBox, LayoutBox)AddContainerChildBox(LayoutBox, LayoutBox)AddContainerSiblingAfter(LayoutBox, LayoutBox)AddContainerSiblingBefore(LayoutBox, LayoutBox)AddLeafChildBox(LayoutBox, LayoutBox)AddLeafSiblingAfter(LayoutBox, LayoutBox)AddLeafSiblingBefore(LayoutBox, LayoutBox)AddSiblingAfter(LayoutBox, LayoutBox)AddSiblingBefore(LayoutBox, LayoutBox)ClearChildren(LayoutBox)GetChildrenCount(LayoutBox)GetFirstChild(LayoutBox)GetLastChild(LayoutBox)GetNextAssociatedLayoutBox(LayoutBox, DocumentElement)GetNextElementOfSameType(LayoutBox)GetNextElementOfType(LayoutBox, Type)GetNextSibling(LayoutBox)GetNextSiblingForDocumentElement(LayoutBox, DocumentElement)GetNextSiblingForDocumentElementOnSameLevel(LayoutBox, DocumentElement)GetParent(LayoutBox)GetPreviousElementOfSameType(LayoutBox)GetPreviousElementOfType(LayoutBox, Type)GetPreviousSibling(LayoutBox)GetPreviousSiblingForDocumentElement(LayoutBox, DocumentElement)GetPreviousSiblingForDocumentElementOnSamelevel(LayoutBox, DocumentElement)GetRootBox()HasChildren(LayoutBox)MergeContainers()MergeContainers(LayoutBox)MergeLongWords(ParagraphLayoutBox)MergeLongWordsFromBox(InlineLayoutBox, DocumentElement)MergeTableRowBoxes(TableRowLayoutBox, TableRowLayoutBox)MergeTwoLayoutBoxes(LayoutBox, LayoutBox, bool)RemoveChild(LayoutBox)RemoveLastChild(LayoutBox)RemoveLeafSiblingAfter(LayoutBox)ReplaceLayoutBox(LayoutBox, SpanLayoutBox)SplitContainer(LayoutBox, LayoutBox, LayoutBox)ToString()
Not finding the help you need?
Contact Support