Editar

Compartir a través de


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(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

characterString
String

The String containing the text characters.

textRunProperties
TextRunProperties

The TextRunProperties value to use for the characters in characterString.

Applies to

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.

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

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

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

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

TextCharacters(String, Int32, Int32, TextRunProperties)

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

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