LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
Rtf Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnRichTextObject Class : Rtf Property



The Rtf Property supports WPF/Silverlight.

The Rtf Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the text of the AnnRichTextObject object, including all rich text format (RTF) codes. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Rtf As String
Visual Basic (Usage)Copy Code
Dim instance As AnnRichTextObject
Dim value As String
 
instance.Rtf = value
 
value = instance.Rtf
C# 
public string Rtf {get; set;}
C++/CLI 
public:
property String^ Rtf {
   String^ get();
   void set (    String^ value);
}

Property Value

The text of the control in RTF format. Default value is null reference (Nothing in Visual Basic) for no text.

Example

For XAML example, refer to AnnGroupObject.

For C#/VB examples, refer to AnnRichTextObject.

Remarks

You can use this property to place RTF formatted text into the object or to extract the text of the control with the specified RTF formatting defined in the text of the object. This property is typically used when you are assigning RTF text from another RTF source, such as Microsoft Word or Windows WordPad, to the object.

For the RTF codes, see "rich text format (RTF) Specification, version 1.6" in the MSDN library at .

For more information, refer to Using Text in WPF Annotation Objects.

For more information about the rich text annotation object refer to AnnRichTextObject for WPF.

For more information about the automated rich text annotation object, refer to WPF Annotation Objects - Automated Features.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Rtf requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.