Class
BookmarkItemStyleTypeToFontStyleConverter

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:

cs-api-definition
public class BookmarkItemStyleTypeToFontStyleConverter : IValueConverter

Inheritance: objectBookmarkItemStyleTypeToFontStyleConverter

Implements: IValueConverter

Constructors

BookmarkItemStyleTypeToFontStyleConverter()

Declaration

cs-api-definition
public BookmarkItemStyleTypeToFontStyleConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a value to a FontStyle.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The source value, expected to be a bit field.

targetType

Type

The type of the binding target property (typically FontStyle).

parameter

object

Optional converter parameter (not used).

culture

CultureInfo

The culture to use in the converter (ignored).

Returns

object

when the flag is present; otherwise .

Exceptions

ArgumentException

Thrown when value is not of type .

ConvertBack(object, Type, object, CultureInfo)

Converts a FontStyle value back to .

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The target value, expected to be a FontStyle.

targetType

Type

The type to convert to (typically ).

parameter

object

Optional converter parameter (not used).

culture

CultureInfo

The culture to use in the converter (ignored).

Returns

object

when value equals ; otherwise .

Exceptions

ArgumentException

Thrown when value is not of type FontStyle.