语言

CharacterBufferRange 构造函数

定义

初始化结构的新实例 CharacterBufferRange 。

重载

名称 说明
CharacterBufferRange(Char*, Int32)

从非托管字符串初始化结构的新实例 CharacterBufferRange 。

CharacterBufferRange(Char[], Int32, Int32)

从字符数组初始化结构的新实例 CharacterBufferRange 。

CharacterBufferRange(String, Int32, Int32)

从字符串初始化结构的新实例 CharacterBufferRange 。

CharacterBufferRange(Char*, Int32)

重要

此 API 不符合 CLS。

从非托管字符串初始化结构的新实例 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*

对字符串的非托管指针引用。

characterLength
Int32

要使用的 unsafecharacterString 字符数。

特性

注解

调用方需要非托管代码权限才能调用 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 字符数。

适用于