Share via


CharacterBufferRange 建構函式

定義

初始化 CharacterBufferRange 結構的新執行個體。

多載

CharacterBufferRange(Char*, Int32)

從 Unmanaged 的字元字串中,初始化 CharacterBufferRange 結構的新執行個體。

CharacterBufferRange(Char[], Int32, Int32)

從字元陣列初始化 CharacterBufferRange 結構的新執行個體。

CharacterBufferRange(String, Int32, Int32)

從字元字串初始化 CharacterBufferRange 結構的新執行個體。

CharacterBufferRange(Char*, Int32)

重要

此 API 不符合 CLS 規範。

從 Unmanaged 的字元字串中,初始化 CharacterBufferRange 結構的新執行個體。

public:
 CharacterBufferRange(char* unsafeCharacterString, int characterLength);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public CharacterBufferRange (char* unsafeCharacterString, int characterLength);
[System.CLSCompliant(false)]
public CharacterBufferRange (char* unsafeCharacterString, int characterLength);
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
new System.Windows.Media.TextFormatting.CharacterBufferRange : nativeptr<char> * int -> System.Windows.Media.TextFormatting.CharacterBufferRange
[<System.CLSCompliant(false)>]
new System.Windows.Media.TextFormatting.CharacterBufferRange : nativeptr<char> * int -> System.Windows.Media.TextFormatting.CharacterBufferRange

參數

unsafeCharacterString
Char*

字元字串的 Unmanaged 指標參考。

characterLength
Int32

unsafecharacterString 中要使用的字元數。

屬性

備註

呼叫端需要 Unmanaged 程式碼許可權,才能叫用 CharacterBufferRange 方法。

適用於

CharacterBufferRange(Char[], Int32, Int32)

從字元陣列初始化 CharacterBufferRange 結構的新執行個體。

public:
 CharacterBufferRange(cli::array <char> ^ characterArray, int offsetToFirstChar, int characterLength);
public CharacterBufferRange (char[] characterArray, int offsetToFirstChar, int characterLength);
new System.Windows.Media.TextFormatting.CharacterBufferRange : char[] * int * int -> System.Windows.Media.TextFormatting.CharacterBufferRange
Public Sub New (characterArray As Char(), offsetToFirstChar As Integer, characterLength As Integer)

參數

characterArray
Char[]

字元陣列。

offsetToFirstChar
Int32

字元緩衝區位移至第一個字元。

characterLength
Int32

characterArray 中要使用的字元數。

適用於

CharacterBufferRange(String, Int32, Int32)

從字元字串初始化 CharacterBufferRange 結構的新執行個體。

public:
 CharacterBufferRange(System::String ^ characterString, int offsetToFirstChar, int characterLength);
public CharacterBufferRange (string characterString, int offsetToFirstChar, int characterLength);
new System.Windows.Media.TextFormatting.CharacterBufferRange : string * int * int -> System.Windows.Media.TextFormatting.CharacterBufferRange
Public Sub New (characterString As String, offsetToFirstChar As Integer, characterLength As Integer)

參數

characterString
String

字元字串。

offsetToFirstChar
Int32

字元緩衝區位移至第一個字元。

characterLength
Int32

characterString 中要使用的字元數。

適用於