DataPackage.SetRtf | setRtf method

Sets the Rich Text Format (RTF) content that is contained in a DataPackage.

Syntax


dataPackage.setRtf(value);

Parameters

value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

Specifies the RTF content for the DataPackage.

Remarks

This method sets the value for StandardFormats.Rtf.

RTF is one of the data types that the DataPackage object supports directly. See the StandardDataFormats class for info on other supported data types.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.winmd

See also

DataPackage

 

 

Show:
© 2015 Microsoft