TextCharacters Constructors
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 TextCharacters class.
TextCharacters(String, TextRunProperties) |
Initializes a new instance of the TextCharacters class using a specified character string. |
TextCharacters(Char*, Int32, TextRunProperties) |
Initializes a new instance of the TextCharacters class using a specified unsafe character string. |
TextCharacters(Char[], Int32, Int32, TextRunProperties) |
Initializes a new instance of the TextCharacters class using a specified character array. |
TextCharacters(String, Int32, Int32, TextRunProperties) |
Initializes a new instance of the TextCharacters class using a specified character substring. |
Initializes a new instance of the TextCharacters class using a specified character string.
public:
TextCharacters(System::String ^ characterString, System::Windows::Media::TextFormatting::TextRunProperties ^ textRunProperties);
public TextCharacters (string characterString, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);
new System.Windows.Media.TextFormatting.TextCharacters : string * System.Windows.Media.TextFormatting.TextRunProperties -> System.Windows.Media.TextFormatting.TextCharacters
Public Sub New (characterString As String, textRunProperties As TextRunProperties)
Parameters
- textRunProperties
- TextRunProperties
The TextRunProperties value to use for the characters in characterString
.
Applies to
.NET Framework 4.8.1 및 기타 버전
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Important
This API is not CLS-compliant.
Initializes a new instance of the TextCharacters class using a specified unsafe character string.
public:
TextCharacters(char* unsafeCharacterString, int length, System::Windows::Media::TextFormatting::TextRunProperties ^ textRunProperties);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public TextCharacters (char* unsafeCharacterString, int length, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);
[System.CLSCompliant(false)]
public TextCharacters (char* unsafeCharacterString, int length, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
new System.Windows.Media.TextFormatting.TextCharacters : nativeptr<char> * int * System.Windows.Media.TextFormatting.TextRunProperties -> System.Windows.Media.TextFormatting.TextCharacters
[<System.CLSCompliant(false)>]
new System.Windows.Media.TextFormatting.TextCharacters : nativeptr<char> * int * System.Windows.Media.TextFormatting.TextRunProperties -> System.Windows.Media.TextFormatting.TextCharacters
Parameters
- unsafeCharacterString
- Char*
Pointer to character string.
- length
- Int32
The length of the characters to use in unsafeCharacterString
.
- textRunProperties
- TextRunProperties
The TextRunProperties value to use for the characters in unsafeCharacterString
.
- Attributes
Applies to
.NET Framework 4.8.1 및 기타 버전
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the TextCharacters class using a specified character array.
public:
TextCharacters(cli::array <char> ^ characterArray, int offsetToFirstChar, int length, System::Windows::Media::TextFormatting::TextRunProperties ^ textRunProperties);
public TextCharacters (char[] characterArray, int offsetToFirstChar, int length, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);
new System.Windows.Media.TextFormatting.TextCharacters : char[] * int * int * System.Windows.Media.TextFormatting.TextRunProperties -> System.Windows.Media.TextFormatting.TextCharacters
Public Sub New (characterArray As Char(), offsetToFirstChar As Integer, length As Integer, textRunProperties As TextRunProperties)
Parameters
- offsetToFirstChar
- Int32
The offset to the first character to use in characterArray
.
- length
- Int32
The length of the characters to use in characterArray
.
- textRunProperties
- TextRunProperties
The TextRunProperties value to use for the characters in characterArray
.
Applies to
.NET Framework 4.8.1 및 기타 버전
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Initializes a new instance of the TextCharacters class using a specified character substring.
public:
TextCharacters(System::String ^ characterString, int offsetToFirstChar, int length, System::Windows::Media::TextFormatting::TextRunProperties ^ textRunProperties);
public TextCharacters (string characterString, int offsetToFirstChar, int length, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);
new System.Windows.Media.TextFormatting.TextCharacters : string * int * int * System.Windows.Media.TextFormatting.TextRunProperties -> System.Windows.Media.TextFormatting.TextCharacters
Public Sub New (characterString As String, offsetToFirstChar As Integer, length As Integer, textRunProperties As TextRunProperties)
Parameters
- offsetToFirstChar
- Int32
The offset to the first character to use in characterString
.
- length
- Int32
The length of the characters to use in characterString
.
- textRunProperties
- TextRunProperties
The TextRunProperties value to use for the characters in characterString
.
Applies to
.NET Framework 4.8.1 및 기타 버전
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.