DataFormats.Rtf Field

 

Specifies text consisting of Rich Text Format (RTF) data. This static field is read-only.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static readonly string Rtf

Field Value

Type: System.String

RTF is an adaptation of Document Content Architecture that is used for transferring formatted text documents between applications.

This field is used by the IDataObject interface and the DataObject class to specify the data type.

When adding to an IDataObject or to an implementation of DataObject, use this field as the format for the IDataObject.SetData and DataObject.SetData methods.

To see if an object of this type exists, use this field as the format for the IDataObject.GetDataPresent and DataObject.GetDataPresent methods.

To get an object of this type, use this as the format for the IDataObject.GetData and DataObject.GetData methods.

For more information about the RTF format, see the Rich Text Format specification in the MSDN library at http://msdn.microsoft.com/library.

.NET Framework
Available since 1.1
Return to top
Show: