DataWriter.MeasureString(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

参数

value
String

Platform::String

winrt::hstring

字符串。

返回

UInt32

unsigned int

uint32_t

字符串的大小(以字节为单位)。

实现

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

适用于