語言

TextCharacters 建構函式

定義

初始化 TextCharacters 類別的新執行個體。

多載

名稱 Description
TextCharacters(String, TextRunProperties)

使用指定的字串初始化該類別的新實例 TextCharacters 。

TextCharacters(Char*, Int32, TextRunProperties)

使用指定的不安全字元字串初始化該 TextCharacters 類別的新實例。

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

使用指定的字元陣列初始化該 TextCharacters 類別的新實例。

TextCharacters(String, Int32, Int32, TextRunProperties)

使用指定的字元子串初始化該類別的新實例 TextCharacters 。

TextCharacters(String, TextRunProperties)

使用指定的字串初始化該類別的新實例 TextCharacters 。

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)

參數

characterString
String

它們 String 包含文字字元。

textRunProperties
TextRunProperties

TextRunProperties該值用於 中的字元characterString。

適用於

TextCharacters(Char*, Int32, TextRunProperties)

重要

此 API 不符合 CLS 規範。

使用指定的不安全字元字串初始化該 TextCharacters 類別的新實例。

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

參數

unsafeCharacterString
Char*

指標指向字串。

length
Int32

在 中應使用的 unsafeCharacterString字元長度。

textRunProperties
TextRunProperties

TextRunProperties該值用於 中的字元unsafeCharacterString。

屬性

適用於

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

使用指定的字元陣列初始化該 TextCharacters 類別的新實例。

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)

參數

characterArray
Char[]

陣 Char 列。

offsetToFirstChar
Int32

偏移量為第一個在 中 characterArray使用的字元。

length
Int32

在 中應使用的 characterArray字元長度。

textRunProperties
TextRunProperties

TextRunProperties該值用於 中的字元characterArray。

適用於

TextCharacters(String, Int32, Int32, TextRunProperties)

使用指定的字元子串初始化該類別的新實例 TextCharacters 。

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)

參數

characterString
String

它們 String 包含文字字元。

offsetToFirstChar
Int32

偏移量為第一個在 中 characterString使用的字元。

length
Int32

在 中應使用的 characterString字元長度。

textRunProperties
TextRunProperties

TextRunProperties該值用於 中的字元characterString。

適用於