Intersoft.Client.Documents Namespace : Section Class |
<ContentPropertyAttribute("Blocks")> Public Class Section Inherits Block
Dim instance As Section
[ContentPropertyAttribute("Blocks")] public class Section : Block
[ContentPropertyAttribute("Blocks")] public ref class Section : public Block
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.
System.Object
System.Windows.DependencyObject
Intersoft.Client.Documents.TextElement
Intersoft.Client.Documents.Block
Intersoft.Client.Documents.Section
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