Gets or sets the top-level Block element collection of FlowDocument content.
Visual Basic (Declaration) | |
---|---|
Public Property Blocks As BlockCollection |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As FlowDocument Dim value As BlockCollection instance.Blocks = value value = instance.Blocks |
C# | |
---|---|
public BlockCollection Blocks {get; set;} |
Delphi | |
---|---|
public read-write property Blocks: BlockCollection; |
JScript | |
---|---|
public function get,set Blocks : BlockCollection |
Managed Extensions for C++ | |
---|---|
public: __property BlockCollection* get_Blocks(); public: __property void set_Blocks( BlockCollection* value ); |
C++/CLI | |
---|---|
public: property BlockCollection^ Blocks { BlockCollection^ get(); void set ( BlockCollection^ value); } |
FlowDocument elements are divided into two kind of types: Block and Inline elements. Elements that inherit from Block can be used to group elements under a common parent or to apply common attributes to a group, while elements that inherit from Inline are either contained within a Block element or another Inline element. Inline elements are often used as the direct container of content that is rendered to the screen. For example, a Paragraph (Block element) can contain a Run (Inline element) but the Run actually contains the text that is rendered on the screen.
The diagram below shows the element schema in FlowDocument.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family