Redigera

Dela via


CharacterBufferRange Constructors

Definition

Initializes a new instance of the CharacterBufferRange structure.

Overloads

CharacterBufferRange(Char*, Int32)

Initializes a new instance of the CharacterBufferRange structure from a unmanaged character string.

CharacterBufferRange(Char[], Int32, Int32)

Initializes a new instance of the CharacterBufferRange structure from a character array.

CharacterBufferRange(String, Int32, Int32)

Initializes a new instance of the CharacterBufferRange structure from a character string.

CharacterBufferRange(Char*, Int32)

Important

This API is not CLS-compliant.

Initializes a new instance of the CharacterBufferRange structure from a unmanaged character string.

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

Parameters

unsafeCharacterString
Char*

An unmanaged pointer reference to a character string.

characterLength
Int32

The number of characters in unsafecharacterString to use.

Attributes

Remarks

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

Applies to

CharacterBufferRange(Char[], Int32, Int32)

Initializes a new instance of the CharacterBufferRange structure from a character array.

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)

Parameters

characterArray
Char[]

The character array.

offsetToFirstChar
Int32

The character buffer offset to the first character.

characterLength
Int32

The number of characters in characterArray to use.

Applies to

CharacterBufferRange(String, Int32, Int32)

Initializes a new instance of the CharacterBufferRange structure from a character string.

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)

Parameters

characterString
String

The character string.

offsetToFirstChar
Int32

The character buffer offset to the first character.

characterLength
Int32

The number of characters in characterString to use.

Applies to