Intersoft ClientUI Documentation
Text Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > Run Class : Text Property






Gets or sets the textual content of the element.

Syntax

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

Remarks

Run is used to contain unformatted text. By default, Silverlight will trim the space in front and end of the inline content. If you have multiple Inline elements and specify the content as inline content, the space at the beginning and ending of the content will be removed. This could cause the sentences to be combined without space. In this case, it is recommended that you use Text property to specify the content. If there are long words that does not fit in the available space, the word will be splitted and continued to the next line.

XAML Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Paragraph>
        <Intersoft:Run Text="Lorem ipsum dolor sit amet, "/>
        <Intersoft:Italic>
            <Intersoft:Run Text="consectetur adipisicing elit, "/>
        </Intersoft:Italic>
        <Intersoft:Run Text="sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."/>
    </Intersoft:Paragraph>
</Intersoft:FlowDocument>

Note that when FlowDocument is in page mode and the textual content is rendered in the page intersection, the whole line will be shifted to the next page.

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.