FlowDocument::Blocks Property

Gets the top-level Block elements of the contents of the FlowDocument.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public:
property BlockCollection^ Blocks {
	BlockCollection^ get ();
}
<object>
  <BlockCollection .../>
</object>

Property Value

Type: System.Windows.Documents::BlockCollection
A BlockCollection containing the Block elements that make up the contents of the FlowDocument.

Use the BlockCollection returned by this property to enumerate or manipulate contents of a FlowDocument.

Top-level child elements contained in a FlowDocument must be derived from Block. Valid top-level child elements include the following:

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft