Share via


DataWriter.MeasureString(String) Method

Definition

Gets the size of a string.

public:
 virtual unsigned int MeasureString(Platform::String ^ value) = MeasureString;
uint32_t MeasureString(winrt::hstring const& value);
public uint MeasureString(string value);
function measureString(value)
Public Function MeasureString (value As String) As UInteger

Parameters

value
String

Platform::String

winrt::hstring

The string.

Returns

UInt32

unsigned int

uint32_t

The size of the string, in bytes.

Implements

M:Windows.Storage.Streams.IDataWriter.MeasureString(System.String) M:Windows.Storage.Streams.IDataWriter.MeasureString(Platform::String) M:Windows.Storage.Streams.IDataWriter.MeasureString(winrt::hstring)

Applies to