ClassBookmarkItemStyleTypeToFontStyleConverter
Converts between and FontStyle for use in WPF bindings. Only the Italic style is mapped: if the flag is set, the result is ; otherwise, . The reverse conversion maps to and any other style to .
Definition
Namespace:Telerik.Windows.Controls.FixedDocumentViewersUI.Converters
Assembly:Telerik.Windows.Controls.FixedDocumentViewersUI.dll
Syntax:
public class BookmarkItemStyleTypeToFontStyleConverter : IValueConverter
Inheritance: objectBookmarkItemStyleTypeToFontStyleConverter
Implements:
Constructors
BookmarkItemStyleTypeToFontStyleConverter()
Declaration
public BookmarkItemStyleTypeToFontStyleConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts a value to a FontStyle.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The source value, expected to be a bit field.
targetType
The type of the binding target property (typically FontStyle).
parameter
Optional converter parameter (not used).
culture
The culture to use in the converter (ignored).
Returns
when the flag is present; otherwise .
Exceptions
Thrown when value is not of type .
ConvertBack(object, Type, object, CultureInfo)
Converts a FontStyle value back to .
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The target value, expected to be a FontStyle.
targetType
The type to convert to (typically ).
parameter
Optional converter parameter (not used).
culture
The culture to use in the converter (ignored).
Returns
when value equals ;
otherwise .
Exceptions
Thrown when value is not of type FontStyle.