TextDecorationCollectionConverter.ConvertFromString(String) Metod

Definition

Försöker konvertera en angiven sträng till en instans av TextDecorationCollection.

public:
 static System::Windows::TextDecorationCollection ^ ConvertFromString(System::String ^ text);
public static System.Windows.TextDecorationCollection ConvertFromString(string text);
static member ConvertFromString : string -> System.Windows.TextDecorationCollection
Public Shared Function ConvertFromString (text As String) As TextDecorationCollection

Parametrar

text
String

Som String ska konverteras till objektet TextDecorationCollection .

Returer

Instansen av TextDecorationCollection som skapats från den konverterade text.

Kommentarer

Strängvärdet för parametern text kan antingen vara "Ingen" eller en kombination av de fördefinierade namnen avgränsade TextDecoration med kommatecken, till exempel "Understrykning, genomstrykning". Namnen är skiftlägesokänsliga värden.

Ett eller flera blanksteg kan föregå eller följa varje textdekorationsnamn eller kommatecken. Dessutom tillåts inte duplicerade textdekorationsnamn.

Gäller för