共用方式為


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)

適用於