Intersoft ClientUI Documentation
Section Class
Members  See Also  Send Feedback
Intersoft.Client.Documents Namespace : Section Class






A block-level flow content element used for grouping other Block elements.

Object Model

Section Class

Syntax

Visual Basic (Declaration) 
<ContentPropertyAttribute("Blocks")>
Public Class Section 
   Inherits Block
Visual Basic (Usage)Copy Code
Dim instance As Section
C# 
[ContentPropertyAttribute("Blocks")]
public class Section : Block 
Delphi 
public class Section = class(Block)
JScript 
ContentPropertyAttribute("Blocks")
public class Section extends Block
Managed Extensions for C++ 
[ContentPropertyAttribute("Blocks")]
public __gc class Section : public Block 
C++/CLI 
[ContentPropertyAttribute("Blocks")]
public ref class Section : public Block 

Remarks

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.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Intersoft.Client.Documents.TextElement
         Intersoft.Client.Documents.Block
            Intersoft.Client.Documents.Section

Requirements

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

See Also

© 2012 All Rights Reserved.