TextCharacters Constructors

Definition

Initializes a new instance of the TextCharacters class.

Overloads

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.

TextCharacters(String, TextRunProperties)

Initializes a new instance of the TextCharacters class using a specified character string.

public TextCharacters (string characterString, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);

Parameters

characterString
String

The String containing the text characters.

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

TextCharacters(Char*, Int32, TextRunProperties)

Important

This API is not CLS-compliant.

Initializes a new instance of the TextCharacters class using a specified unsafe character string.

[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);

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

TextCharacters(Char[], Int32, Int32, TextRunProperties)

Initializes a new instance of the TextCharacters class using a specified character array.

public TextCharacters (char[] characterArray, int offsetToFirstChar, int length, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);

Parameters

characterArray
Char[]

The Char array.

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

TextCharacters(String, Int32, Int32, TextRunProperties)

Initializes a new instance of the TextCharacters class using a specified character substring.

public TextCharacters (string characterString, int offsetToFirstChar, int length, System.Windows.Media.TextFormatting.TextRunProperties textRunProperties);

Parameters

characterString
String

The String containing the text characters.

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