Class HorizontalToTextAlignmentConverter
A converter that converts HorizontalAlignment to TextAlignment.
Inheritance
System.Object
    HorizontalToTextAlignmentConverter
  Implements
Microsoft.UI.Xaml.Data.IValueConverter
  Namespace: Syncfusion.UI.Xaml.Core
Assembly: Syncfusion.Core.WinUI.dll
Syntax
public class HorizontalToTextAlignmentConverter : Object, IValueConverterConstructors
HorizontalToTextAlignmentConverter()
Declaration
public HorizontalToTextAlignmentConverter()Methods
Convert(Object, Type, Object, String)
Converts a value from HorizontalAlignment to TextAlignment.
Declaration
public object Convert(object value, Type targetType, object parameter, string language)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | Object to transform to string. | 
| System.Type | targetType | The type of the target property, as a type reference | 
| System.Object | parameter | An optional parameter to be used in the string.Format method. | 
| System.String | language | The language of the conversion (not used). | 
Returns
| Type | Description | 
|---|---|
| System.Object | Formatted string. | 
ConvertBack(Object, Type, Object, String)
Converts back to the value from TextAlignment to HorizontalAlignment.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string language)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | The target data being passed to the source. | 
| System.Type | targetType | The type of the target property, as a type reference (System.Type for Microsoft .NET, a TypeName helper struct for Visual C++ component extensions (C++/CX)). | 
| System.Object | parameter | An optional parameter to be used in the converter logic. | 
| System.String | language | The language of the conversion. | 
Returns
| Type | Description | 
|---|---|
| System.Object | The value to be passed to the source object. | 
Implements
      Microsoft.UI.Xaml.Data.IValueConverter