CharacterBufferRange 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 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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기