Intersoft ClientUI Documentation
Style Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > TextElement Class : Style Property






Gets or sets the style name that will be applied to the element.

Syntax

Visual Basic (Declaration) 
Public Property Style As String
Visual Basic (Usage)Copy Code
Dim instance As TextElement
Dim value As String
 
instance.Style = value
 
value = instance.Style
C# 
public string Style {get; set;}
Delphi 
public read-write property Style: String; 
JScript 
public function get,set Style : String
Managed Extensions for C++ 
public: __property string* get_Style();
public: __property void set_Style( 
   string* value
);
C++/CLI 
public:
property String^ Style {
   String^ get();
   void set (    String^ value);
}

Remarks

You can specify predefined styles that can be applied to all elements in FlowDocument, using FlowDocumentStyle collection. In FlowDocumentStyle, you can specify the fundamental element formatting, such as background, foreground, font-related properties, and border. Each FlowDocumentStyle should have a name, which will be referred from the element.

XAML Copy Code
<Intersoft:FlowDocument>
    <Intersoft:FlowDocument.Styles>
        <Intersoft:FlowDocumentStyle Name="HeadingStyle" Foreground="#FF632423" BorderBrush="#FF632423" BorderThickness="0 0 0 2" FontSize="30"/>
        <Intersoft:FlowDocumentStyle Name="ParagraphStyle" Foreground="Gray"/>
    </Intersoft:FlowDocument.Styles>
    <Intersoft:Paragraph Style="HeadingStyle" SpacingBefore="30">
        <Intersoft:Run>
            BUNDLED APPS
        </Intersoft:Run>
    </Intersoft:Paragraph>
    <Intersoft:Paragraph SpacingBefore="30" Style="ParagraphStyle">
        <Intersoft:Run>
            In addition to the tweaks in the OS, MIUI's also fiddled with some of the bundled apps as well as throwing in some handy tools. Let's look at the bundled apps first: the dialing pad does smart dialing and also supports quick dialing for your favorite buddies; whereas in texting the conversations are displayed in threads with customizable themes. For those who care, another special feature lies in the calendar app where you can also see the lunar calendar. Hey, it is a Chinese phone, after all.
        </Intersoft:Run>
    </Intersoft:Paragraph>
</Intersoft:FlowDocument>

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.