| Visual Basic (Declaration) | |
|---|---|
Public Property Blocks As BlockCollection  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As Section 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); }  | |
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 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
    
    
    
    
    
    
    
                
Copy Code