C# Class csDataServerPlugin.Utils.OutlinedText

Create a text with an outline
Inheritance: System.Windows.FrameworkElement, IAddChild
Show file Open project: TNOCS/csTouch

Public Properties

Property Type Description
BoldProperty System.Windows.DependencyProperty
FillProperty System.Windows.DependencyProperty
FontProperty System.Windows.DependencyProperty
FontSizeProperty System.Windows.DependencyProperty
ItalicProperty System.Windows.DependencyProperty
StrokeProperty System.Windows.DependencyProperty
StrokeThicknessProperty System.Windows.DependencyProperty
TextProperty System.Windows.DependencyProperty

Public Methods

Method Description
AddChild ( Object value ) : void
AddText ( string value ) : void
CreateText ( ) : void

Create the outline geometry based on the formatted text.

Protected Methods

Method Description
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

OnRender override draws the geometry of the text and optional highlight.

Private Methods

Method Description
OnOutlineTextInvalidated ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Invoked when a dependency property has changed. Generate a new FormattedText object to display.

Method Details

AddChild() public method

public AddChild ( Object value ) : void
value Object
return void

AddText() public method

public AddText ( string value ) : void
value string
return void

CreateText() public method

Create the outline geometry based on the formatted text.
public CreateText ( ) : void
return void

OnRender() protected method

OnRender override draws the geometry of the text and optional highlight.
protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext Drawing context of the OutlineText control.
return void

Property Details

BoldProperty public static property

Identifies the Bold dependency property.
public static DependencyProperty,System.Windows BoldProperty
return System.Windows.DependencyProperty

FillProperty public static property

Identifies the Fill dependency property.
public static DependencyProperty,System.Windows FillProperty
return System.Windows.DependencyProperty

FontProperty public static property

Identifies the Font dependency property.
public static DependencyProperty,System.Windows FontProperty
return System.Windows.DependencyProperty

FontSizeProperty public static property

Identifies the FontSize dependency property.
public static DependencyProperty,System.Windows FontSizeProperty
return System.Windows.DependencyProperty

ItalicProperty public static property

Identifies the Italic dependency property.
public static DependencyProperty,System.Windows ItalicProperty
return System.Windows.DependencyProperty

StrokeProperty public static property

Identifies the Stroke dependency property.
public static DependencyProperty,System.Windows StrokeProperty
return System.Windows.DependencyProperty

StrokeThicknessProperty public static property

Identifies the StrokeThickness dependency property.
public static DependencyProperty,System.Windows StrokeThicknessProperty
return System.Windows.DependencyProperty

TextProperty public static property

Identifies the Text dependency property.
public static DependencyProperty,System.Windows TextProperty
return System.Windows.DependencyProperty