Block.SiblingBlocks Property

Definition

Gets a collection of Block elements that are siblings to the current Block element.

C#
public System.Windows.Documents.BlockCollection SiblingBlocks { get; }

Property Value

A BlockCollection that contains the child Block elements that are directly hosted by the parent of the current Block element, or null if the current Block element has no parent.

Remarks

The BlockCollection returned by this property includes the Block element through which the collection is accessed; that is, the element that owns this property is considered to be its own sibling for the purposes of generating the collection of siblings.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also