TextCharacters Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av TextCharacters klassen.
Överlagringar
| Name | Description |
|---|---|
| TextCharacters(String, TextRunProperties) |
Initierar en ny instans av klassen med hjälp av TextCharacters en angiven teckensträng. |
| TextCharacters(Char*, Int32, TextRunProperties) |
Initierar en ny instans av TextCharacters klassen med en angiven osäker teckensträng. |
| TextCharacters(Char[], Int32, Int32, TextRunProperties) |
Initierar en ny instans av klassen med hjälp av TextCharacters en angiven teckenmatris. |
| TextCharacters(String, Int32, Int32, TextRunProperties) |
Initierar en ny instans av klassen med hjälp av TextCharacters en angiven teckenundersträng. |
TextCharacters(String, TextRunProperties)
Initierar en ny instans av klassen med hjälp av TextCharacters en angiven teckensträng.
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)
Parametrar
- textRunProperties
- TextRunProperties
Värdet TextRunProperties som ska användas för tecknen i characterString.
Gäller för
TextCharacters(Char*, Int32, TextRunProperties)
Viktigt!
Detta API uppfyller inte CLS.
Initierar en ny instans av TextCharacters klassen med en angiven osäker teckensträng.
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
Parametrar
- unsafeCharacterString
- Char*
Pekare till teckensträng.
- length
- Int32
Längden på de tecken som ska användas i unsafeCharacterString.
- textRunProperties
- TextRunProperties
Värdet TextRunProperties som ska användas för tecknen i unsafeCharacterString.
- Attribut
Gäller för
TextCharacters(Char[], Int32, Int32, TextRunProperties)
Initierar en ny instans av klassen med hjälp av TextCharacters en angiven teckenmatris.
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)
Parametrar
- offsetToFirstChar
- Int32
Förskjutningen till det första tecknet som ska användas i characterArray.
- length
- Int32
Längden på de tecken som ska användas i characterArray.
- textRunProperties
- TextRunProperties
Värdet TextRunProperties som ska användas för tecknen i characterArray.
Gäller för
TextCharacters(String, Int32, Int32, TextRunProperties)
Initierar en ny instans av klassen med hjälp av TextCharacters en angiven teckenundersträng.
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)
Parametrar
- offsetToFirstChar
- Int32
Förskjutningen till det första tecknet som ska användas i characterString.
- length
- Int32
Längden på de tecken som ska användas i characterString.
- textRunProperties
- TextRunProperties
Värdet TextRunProperties som ska användas för tecknen i characterString.