Intersoft ClientUI Documentation
List Class
Members 



A block-level flow content element that provides facilities for presenting content in an ordered or unordered list.
Object Model
List ClassBorderStyle ClassListItemCollection ClassListItem Class
Syntax
<ContentPropertyAttribute("ListItems")>
Public Class List 
   Inherits Block
Dim instance As List
[ContentPropertyAttribute("ListItems")]
public class List : Block 
[ContentPropertyAttribute("ListItems")]
public ref class List : public Block 
Remarks

List is used to create a bulleted or numeric list. List element can only contain ListItem element collection.

Set the MarkerStyle property to a TextMarkerStyle enumeration value to determine the style of the list. The built-in marker styles provided in FlowDocument are Disc, Circle, Square, Box, LowerRoman, UpperRoman, LowerLatin, UpperLatin, Decimal, and None.

XAML
Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Paragraph FontSize="25">
        <Intersoft:Underline>
            <Intersoft:Run>
                Employment Record
            </Intersoft:Run>
        </Intersoft:Underline>
    </Intersoft:Paragraph>
    <Intersoft:List MarkerStyle="Box" SpacingBefore="10">
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Bold>
                    <Intersoft:Run>
                        Web Developer
                    </Intersoft:Run>
                </Intersoft:Bold>
                <Intersoft:Run>
                    , Paper Best Corp, USA, July 2010 - present
                </Intersoft:Run>
            </Intersoft:Paragraph>
            <Intersoft:List MarkerStyle="Circle">
                <Intersoft:ListItem>
                    <Intersoft:Paragraph>
                        <Intersoft:Run>
                            Develop and maintain database.
                        </Intersoft:Run>
                    </Intersoft:Paragraph>
                </Intersoft:ListItem>
                <Intersoft:ListItem>
                    <Intersoft:Paragraph>
                        <Intersoft:Run>
                            Implement web-based internal CRM application.
                        </Intersoft:Run>
                    </Intersoft:Paragraph>
                </Intersoft:ListItem>
            </Intersoft:List>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Bold>
                    <Intersoft:Run>
                        Junior Support Engineer
                    </Intersoft:Run>
                </Intersoft:Bold>
                <Intersoft:Run>
                    , MultiFront Corp, USA, April 2008 - June 2010
                </Intersoft:Run>
            </Intersoft:Paragraph>
            <Intersoft:List MarkerStyle="Circle">
                <Intersoft:ListItem>
                    <Intersoft:Paragraph>
                        <Intersoft:Run>
                            Provide technical assistance for other departments.
                        </Intersoft:Run>
                    </Intersoft:Paragraph>
                </Intersoft:ListItem>
                <Intersoft:ListItem>
                    <Intersoft:Paragraph>
                        <Intersoft:Run>
                            Perform unit testing on internal ERP application.
                        </Intersoft:Run>
                    </Intersoft:Paragraph>
                </Intersoft:ListItem>
                <Intersoft:ListItem>
                    <Intersoft:Paragraph>
                        <Intersoft:Run>
                            Investigate bugs found during the QA process.
                        </Intersoft:Run>
                    </Intersoft:Paragraph>
                </Intersoft:ListItem>
            </Intersoft:List>
        </Intersoft:ListItem>
    </Intersoft:List>
</Intersoft:FlowDocument>

You can also specify custom image as the marker style by selecting Custom as the value of MarkerStyle property and specify the MarkerSource property to the selected image Uri.

XAML
Copy Code
<Intersoft:FlowDocument>
    <Intersoft:List MarkerStyle="Custom" Margin="10"
                            MarkerSource="/TestProject;component/Assets/Images/FlowDocumentViewer/tick.png">
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    Built on Silverlight 4
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    Rich and ready-to-use controls
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    Enjoy the mature and comprehensive features
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
    </Intersoft:List>
</Intersoft:FlowDocument>

You can specify the start index of the list using StartIndex property. Note that this property will be used when the marker style is one of the following: LowerRoman, UpperRoman, LowerLatin, UpperLatin, and Decimal.

By default, a List element will be indented 25 pixel from its original offset. You can customize this configuration using Margin property. Additionally, you can set the space between the marker style and the content using MarkerOffset property. You can use the MarkerAlignment property to set the alignment of marker style. The default value is Right.

XAML
Copy Code
<Intersoft:FlowDocument>
    <Intersoft:List MarkerStyle="LowerRoman" StartIndex="5" 
            MarkerOffset="10" Margin="30" MarkerAlignment="Left">
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    list item 1
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    list item 2
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    list item 3
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    list item 4
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
        <Intersoft:ListItem>
            <Intersoft:Paragraph>
                <Intersoft:Run>
                    list item 5
                </Intersoft:Run>
            </Intersoft:Paragraph>
        </Intersoft:ListItem>
    </Intersoft:List>
</Intersoft:FlowDocument>

Inheritance Hierarchy

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

Requirements

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

See Also

Reference

List Members
Intersoft.Client.Documents Namespace

Send Feedback