Intersoft ClientUI Documentation
Foreground Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > FlowDocumentStyle Class : Foreground Property






Gets or sets the Brush to apply to the content of the element.

Syntax

Visual Basic (Declaration) 
Public Property Foreground As Brush
Visual Basic (Usage)Copy Code
Dim instance As FlowDocumentStyle
Dim value As Brush
 
instance.Foreground = value
 
value = instance.Foreground
C# 
public Brush Foreground {get; set;}
Delphi 
public read-write property Foreground: Brush; 
JScript 
public function get,set Foreground : Brush
Managed Extensions for C++ 
public: __property Brush* get_Foreground();
public: __property void set_Foreground( 
   Brush* value
);
C++/CLI 
public:
property Brush^ Foreground {
   Brush^ get();
   void set (    Brush^ 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.