Intersoft.Client.Documents Namespace > Section Class : Blocks Property |
Public Property Blocks As BlockCollection
Dim instance As Section Dim value As BlockCollection instance.Blocks = value value = instance.Blocks
public BlockCollection Blocks {get; set;}
public: property BlockCollection^ Blocks { BlockCollection^ get(); void set ( BlockCollection^ value); }
Section is used to contain other Block elements. Section is useful for applying common attributes to a group of block elements, such as the same font attributes to multiple paragraphs. Section is used in a similar manner to the <DIV> tag in HTML.
XAML |
Copy Code
|
---|---|
<Intersoft:FlowDocument> <Intersoft:Section Foreground="Gray"> <Intersoft:Paragraph> Paragraph 1 </Intersoft:Paragraph> <Intersoft:Paragraph> Paragraph 2 </Intersoft:Paragraph> <Intersoft:Paragraph> Paragraph 3 </Intersoft:Paragraph> </Intersoft:Section> </Intersoft:FlowDocument> |
In the example code above, three paragraphs are defined under one section. The Section has a Foreground property value of Gray, therefore all paragraphs will use Gray as their foreground color.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2