WpfAdapter
Adapter for WPF platform.
Erbt von: RAdapter
Konstruktoren
WpfAdapter()
Init installed font families and set default font families mapping.
Eigenschaften
Instance : WpfAdapter
Singleton instance of global adapter.
Methoden
CreateContextMenuInt() : RContextMenu
Creates a new context menu instance.
CreateFontInt(RFontFamily, double, RFontStyle) : RFont
Creates a new font instance with the specified properties.
- family
- The font family name.
- size
- The size of the font.
- style
- The font style, defined by the RFontStyle enum.
Rückgabe: A new RFont object configured with the specified properties.
CreateFontInt(string, double, RFontStyle) : RFont
Creates a new font instance with the specified properties.
- family
- The font family name.
- size
- The size of the font.
- style
- The font style, defined by the RFontStyle enum.
Rückgabe: A new RFont object configured with the specified properties.
CreateLinearGradientBrush(RRect, RColor, RColor, double) : RBrush
Create linear gradient brush for the given rectangle, color and angel.
- rect
- color1
- color2
- angle
GetClipboardDataObjectInt(string, string) : object
Measure the width of the string under the maximum width restriction, calculating the number of characters that can fit and the width those characters take.
- html
- plainText
GetFontStyle(RFontStyle) : FontStyle
Get WPF font style for the given style.
GetFontWidth(RFontStyle) : FontWeight
Get WPF font style for the given style.
GetSolidColorBrush(RColor) : Brush
Get solid color brush for the given color.
SaveToFileInt(RImage, string, string, RControl)
Saves the image to the specified file.
- image
- name
- extension
- control
Ereignisse
CreateContextMenuHandler : Func<RContextMenu>
Context menu creation handler.
Felder
ValidColorNamesLc : List<string>
List of valid predefined color names in lower-case
_instance : WpfAdapter
Singleton instance of global adapter.