Intersoft ClientUI Documentation
FontStretch Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > FlowDocument Class : FontStretch Property






Gets or sets the top-level font-stretching characteristics for the document.

Syntax

Visual Basic (Declaration) 
Public Property FontStretch As FontStretch
Visual Basic (Usage)Copy Code
Dim instance As FlowDocument
Dim value As FontStretch
 
instance.FontStretch = value
 
value = instance.FontStretch
C# 
public FontStretch FontStretch {get; set;}
Delphi 
public read-write property FontStretch: FontStretch; 
JScript 
public function get,set FontStretch : FontStretch
Managed Extensions for C++ 
public: __property FontStretch get_FontStretch();
public: __property void set_FontStretch( 
   FontStretch value
);
C++/CLI 
public:
property FontStretch FontStretch {
   FontStretch get();
   void set (    FontStretch value);
}

Remarks

Global formatting can be applied to all elements in FlowDocument by configuring it in FlowDocument object. You can set a series of font configuration, such as FontFamily, FontSize, FontStretch, FontStyle, FontWeight to the document. In addition, you can use Foreground property to set the default foreground color for all document elements. You can use TextAlignment property to set default text alignment, as well as LineSpacingType and LineSpacing properties to specify the default line spacing configuration. Note that the global configuration will be overridden if there is individual configuration specified in element level.

The following code example shows a simple FlowDocument with various font formatting.

XAML Copy Code
<Intersoft:FlowDocument Foreground="Blue" FontFamily="Lucida Sans Unicode" 
                        FontSize="20">
    <Intersoft:Paragraph>
        <Intersoft:Run>
            Hello World !
        </Intersoft:Run>
    </Intersoft:Paragraph>
    <Intersoft:Section>
        <Intersoft:Paragraph>
            <Intersoft:Run>
                This is my first flow document.
            </Intersoft:Run>
        </Intersoft:Paragraph>
    </Intersoft:Section>
</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.