5 types derived from TextTreeNode
PresentationFramework (5)
src\Framework\System\Windows\Documents\TextTreeFixupNode.cs (1)
24
internal class TextTreeFixupNode :
TextTreeNode
src\Framework\System\Windows\Documents\TextTreeObjectNode.cs (1)
23
internal class TextTreeObjectNode :
TextTreeNode
src\Framework\System\Windows\Documents\TextTreeRootNode.cs (1)
27
internal class TextTreeRootNode :
TextTreeNode
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (1)
25
internal class TextTreeTextElementNode :
TextTreeNode
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (1)
40
internal class TextTreeTextNode :
TextTreeNode
187 references to TextTreeNode
PresentationFramework (187)
src\Framework\System\Windows\Documents\TextContainer.cs (69)
485
TextTreeNode
node;
522
TextTreeNode
node = (
TextTreeNode
)pointer.Handle0;
549
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
572
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
588
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
604
private
TextTreeNode
GetScopingNode(StaticTextPointer position)
606
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
608
TextTreeNode
scopingNode;
635
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
649
node = (
TextTreeNode
)node.GetContainingNode();
1189
TextTreeNode
objectNode;
1236
TextTreeNode
containingNode;
1394
internal void GetNodeAndEdgeAtCharOffset(int charOffset, out
TextTreeNode
node, out ElementEdge edge)
1474
node = (
TextTreeNode
)node.ContainedNode;
1478
node = (
TextTreeNode
)node.GetSiblingAtCharOffset(charOffset - nodeCharOffset, out siblingTreeCharOffset);
1485
node = (
TextTreeNode
)AdjustForZeroWidthNode(node, edge);
1950
internal
TextTreeNode
FirstContainedNode
1954
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetFirstContainedNode();
1959
internal
TextTreeNode
LastContainedNode
1963
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetLastContainedNode();
2221
if (previousNode != null && previousNode.SymbolCount == 0 && !((
TextTreeNode
)previousNode).AfterEndReferenceCount)
2235
if (nextNode != null && nextNode.SymbolCount == 0 && !((
TextTreeNode
)nextNode).BeforeStartReferenceCount)
2297
TextTreeNode
.Join(elementNode, leftSubTree, rightSubTree);
2318
TextTreeNode
previousNode;
2320
TextTreeNode
nextNode;
2349
previousNode = (
TextTreeNode
)leftSubTree.GetMaxSibling();
2354
previousNode = (
TextTreeNode
)containingNode;
2359
nextNode = (
TextTreeNode
)rightSubTree.GetMinSibling();
2364
nextNode = (
TextTreeNode
)containingNode;
2370
AdjustRefCountsForContentDelete(ref previousNode, previousEdge, ref nextNode, nextEdge, (
TextTreeNode
)middleSubTree);
2393
rootNode =
TextTreeNode
.Join(leftSubTree, rightSubTree);
2436
private int CutTopLevelLogicalNodes(
TextTreeNode
containingNode, TextPointer startPosition, TextPointer endPosition, out int charCount)
2545
private void AdjustRefCountsForContentDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2546
ref
TextTreeNode
nextNode, ElementEdge nextEdge,
2547
TextTreeNode
middleSubTree)
2556
GetReferenceCounts((
TextTreeNode
)middleSubTree.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2563
private void GetReferenceCounts(
TextTreeNode
node, ref bool leftEdgeReferenceCount, ref bool rightEdgeReferenceCount)
2574
GetReferenceCounts((
TextTreeNode
)node.ContainedNode.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2577
node = (
TextTreeNode
)node.GetNextNode();
2600
private void AdjustRefCountsForShallowDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2601
ref
TextTreeNode
nextNode,ElementEdge nextEdge,
2602
ref
TextTreeNode
firstContainedNode, ref
TextTreeNode
lastContainedNode,
2819
oldLogicalParent = ((
TextTreeNode
)containingNode).GetLogicalTreeNode();
2990
TextTreeNode
previousNode;
2992
TextTreeNode
nextNode;
2998
TextTreeNode
firstContainedNode;
2999
TextTreeNode
lastContainedNode;
3002
previousNode = (
TextTreeNode
)elementNode.GetPreviousNode();
3006
previousNode = (
TextTreeNode
)containingNode;
3009
nextNode = (
TextTreeNode
)elementNode.GetNextNode();
3013
nextNode = (
TextTreeNode
)containingNode;
3043
firstContainedNode = (
TextTreeNode
)childNode.GetMinSibling();
3044
lastContainedNode = (
TextTreeNode
)childNode.GetMaxSibling();
3128
clone.ContainedNode = DeepCopyContainedNodes((
TextTreeNode
)elementNode.ContainedNode.GetMinSibling());
3136
private
TextTreeNode
DeepCopyContainedNodes(
TextTreeNode
node)
3138
TextTreeNode
rootClone;
3139
TextTreeNode
previousClone;
3140
TextTreeNode
clone;
3180
node = (
TextTreeNode
)node.GetNextNode();
3450
private void RaiseEventForFormerFirstIMEVisibleNode(
TextTreeNode
node)
3462
private void RaiseEventForNewFirstIMEVisibleNode(
TextTreeNode
node)
src\Framework\System\Windows\Documents\TextPointer.cs (59)
308
Initialize(textContainer, (
TextTreeNode
)node, edge, direction, textContainer.PositionGeneration, false, false, textContainer.LayoutGeneration);
312
internal TextPointer(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
318
internal TextPointer(TextContainer tree,
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
609
TextTreeNode
textNode = GetAdjacentTextNodeSibling(direction);
1833
internal static DependencyObject GetAdjacentElement(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
1835
TextTreeNode
adjacentNode;
1953
MoveToNode(_tree, (
TextTreeNode
)node, edge);
1991
TextTreeNode
node;
2295
SetNodeAndEdge(AdjustRefCounts((
TextTreeNode
)newNode, edge, _node, this.Edge), edge);
2451
TextTreeNode
parent1;
2452
TextTreeNode
parent2;
2659
TextTreeNode
scopingNode = GetScopingNode();
2848
internal static TextTreeTextNode GetAdjacentTextNodeSibling(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
2869
internal
TextTreeNode
GetAdjacentSiblingNode(LogicalDirection direction)
2876
internal static
TextTreeNode
GetAdjacentSiblingNode(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
2925
return (
TextTreeNode
)sibling;
2937
internal static int GetSymbolOffset(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
3077
SetNodeAndEdge((
TextTreeNode
)node, edge);
3087
internal
TextTreeNode
GetScopingNode()
3092
internal static
TextTreeNode
GetScopingNode(
TextTreeNode
node, ElementEdge edge)
3094
TextTreeNode
scopingNode;
3100
scopingNode = (
TextTreeNode
)node.GetContainingNode();
3119
internal bool GetNextNodeAndEdge(out
TextTreeNode
node, out ElementEdge edge)
3129
internal static bool GetNextNodeAndEdge(
TextTreeNode
sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out
TextTreeNode
node, out ElementEdge edge)
3283
node = (
TextTreeNode
)newNode;
3289
internal bool GetPreviousNodeAndEdge(out
TextTreeNode
node, out ElementEdge edge)
3299
internal static bool GetPreviousNodeAndEdge(
TextTreeNode
sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out
TextTreeNode
node, out ElementEdge edge)
3452
node = (
TextTreeNode
)newNode;
3458
internal static TextPointerContext GetPointerContextForward(
TextTreeNode
node, ElementEdge edge)
3460
TextTreeNode
nextNode;
3461
TextTreeNode
firstContainedNode;
3473
firstContainedNode = (
TextTreeNode
)node.GetFirstContainedNode();
3489
nextNode = (
TextTreeNode
)node.GetNextNode();
3512
internal static TextPointerContext GetPointerContextBackward(
TextTreeNode
node, ElementEdge edge)
3515
TextTreeNode
previousNode;
3516
TextTreeNode
lastChildNode;
3521
previousNode = (
TextTreeNode
)node.GetPreviousNode();
3541
lastChildNode = (
TextTreeNode
)node.GetLastContainedNode();
3872
internal
TextTreeNode
Node
3951
Initialize(position.TextContainer, (
TextTreeNode
)node, edge, direction, position.TextContainer.PositionGeneration,
3956
private void Initialize(TextContainer tree,
TextTreeNode
node, ElementEdge edge, LogicalDirection gravity, uint generation,
3993
private
TextTreeNode
AdjustRefCounts(
TextTreeNode
newNode, ElementEdge newNodeEdge,
TextTreeNode
oldNode, ElementEdge oldNodeEdge)
3995
TextTreeNode
node;
4016
private static void RepositionForGravity(ref
TextTreeNode
node, ref ElementEdge edge, LogicalDirection gravity)
4079
node = (
TextTreeNode
)newNode;
4099
internal
TextTreeNode
GetAdjacentNode(LogicalDirection direction)
4104
internal static
TextTreeNode
GetAdjacentNode(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
4106
TextTreeNode
adjacentNode;
4119
adjacentNode = (
TextTreeNode
)node.GetContainingNode();
4128
private void MoveToNode(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
4285
private void SetNodeAndEdge(
TextTreeNode
node, ElementEdge edge)
4384
private
TextTreeNode
_node;
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (13)
41
TextTreeNode
node;
42
TextTreeNode
haltNode;
171
private ContentContainer CopyContent(
TextTreeNode
node,
TextTreeNode
haltNode)
222
private
TextTreeNode
CopyTextNode(TextTreeTextNode textNode,
TextTreeNode
haltNode, out ContentContainer container)
254
return (
TextTreeNode
)node;
267
private
TextTreeNode
CopyObjectNode(TextTreeObjectNode objectNode, out ContentContainer container)
285
return (
TextTreeNode
)objectNode.GetNextNode();
290
private
TextTreeNode
CopyElementNode(TextTreeTextElementNode elementNode, out ContentContainer container)
296
CopyContent((
TextTreeNode
)elementNode.GetFirstContainedNode(), null));
304
CopyContent((
TextTreeNode
)elementNode.GetFirstContainedNode(), null));
307
return (
TextTreeNode
)elementNode.GetNextNode();
src\Framework\System\Windows\Documents\TextTreeFixupNode.cs (15)
37
internal TextTreeFixupNode(
TextTreeNode
previousNode, ElementEdge previousEdge,
TextTreeNode
nextNode, ElementEdge nextEdge) :
48
internal TextTreeFixupNode(
TextTreeNode
previousNode, ElementEdge previousEdge,
TextTreeNode
nextNode, ElementEdge nextEdge,
49
TextTreeNode
firstContainedNode,
TextTreeNode
lastContainedNode)
106
internal override
TextTreeNode
Clone()
328
internal
TextTreeNode
PreviousNode
348
internal
TextTreeNode
NextNode
368
internal
TextTreeNode
FirstContainedNode
378
internal
TextTreeNode
LastContainedNode
415
private readonly
TextTreeNode
_previousNode;
421
private readonly
TextTreeNode
_nextNode;
428
private readonly
TextTreeNode
_firstContainedNode;
432
private readonly
TextTreeNode
_lastContainedNode;
src\Framework\System\Windows\Documents\TextTreeNode.cs (4)
273
internal abstract
TextTreeNode
Clone();
383
internal
TextTreeNode
IncrementReferenceCount(ElementEdge edge)
388
internal virtual
TextTreeNode
IncrementReferenceCount(ElementEdge edge, bool delta)
400
internal virtual
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
src\Framework\System\Windows\Documents\TextTreeObjectNode.cs (7)
69
internal override
TextTreeNode
Clone()
105
_parentNode = (
TextTreeNode
)value;
161
_leftChildNode = (
TextTreeNode
)value;
175
_rightChildNode = (
TextTreeNode
)value;
329
private
TextTreeNode
_parentNode;
332
private
TextTreeNode
_leftChildNode;
335
private
TextTreeNode
_rightChildNode;
src\Framework\System\Windows\Documents\TextTreeRootNode.cs (3)
83
internal override
TextTreeNode
Clone()
132
_containedNode = (
TextTreeNode
)value;
452
private
TextTreeNode
_containedNode;
src\Framework\System\Windows\Documents\TextTreeTextElementNode.cs (9)
70
internal override
TextTreeNode
Clone()
111
_parentNode = (
TextTreeNode
)value;
125
_containedNode = (
TextTreeNode
)value;
167
_leftChildNode = (
TextTreeNode
)value;
181
_rightChildNode = (
TextTreeNode
)value;
364
private
TextTreeNode
_parentNode;
367
private
TextTreeNode
_leftChildNode;
370
private
TextTreeNode
_rightChildNode;
373
private
TextTreeNode
_containedNode;
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (8)
88
internal override
TextTreeNode
Clone()
113
internal override
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
292
_parentNode = (
TextTreeNode
)value;
348
_leftChildNode = (
TextTreeNode
)value;
362
_rightChildNode = (
TextTreeNode
)value;
575
private
TextTreeNode
_parentNode;
578
private
TextTreeNode
_leftChildNode;
581
private
TextTreeNode
_rightChildNode; //