Επεξεργασία

Κοινή χρήση μέσω


CharacterBufferReference Constructors

Definition

Initializes a new instance of the CharacterBufferReference structure.

Overloads

CharacterBufferReference(Char*, Int32)

Initializes a new instance of the CharacterBufferReference structure using a specified unsafe character string.

CharacterBufferReference(Char[], Int32)

Initializes a new instance of the CharacterBufferReference structure using a specified character array.

CharacterBufferReference(String, Int32)

Initializes a new instance of the CharacterBufferReference structure using a specified character string.

CharacterBufferReference(Char*, Int32)

Important

This API is not CLS-compliant.

Initializes a new instance of the CharacterBufferReference structure using a specified unsafe character string.

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

Parameters

unsafeCharacterString
Char*

Pointer to character string.

characterLength
Int32

The length of unsafeCharacterString.

Attributes

Remarks

The caller needs unmanaged code permission in order to invoke the CharacterBufferReference method.

Applies to

CharacterBufferReference(Char[], Int32)

Initializes a new instance of the CharacterBufferReference structure using a specified character array.

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

Parameters

characterArray
Char[]

The Char array.

offsetToFirstChar
Int32

The offset to the first character to use in characterArray.

Applies to

CharacterBufferReference(String, Int32)

Initializes a new instance of the CharacterBufferReference structure using a specified character string.

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

Parameters

characterString
String

The String containing the text characters.

offsetToFirstChar
Int32

The offset to the first character to use in characterString.

Applies to