System.Windows.Forms.DataFormats.Rtf Field

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

Syntax

public static readonly string Rtf

Remarks

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

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

When adding to an System.Windows.Forms.IDataObject or to an implementation of System.Windows.Forms.DataObject, use this field as the format for the IDataObject.SetData(string, bool, object) and DataObject.SetData(string, bool, object) methods.

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

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

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0