DataWriter.MeasureString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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)