CharacterBufferReference Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- offsetToFirstChar
- Int32
The offset to the first character to use in characterString
.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應