Search
KeyTemplate Members
Constructors Methods
 


Specifies appearance of keys.

The following tables list the members exposed by the KeyTemplate type.

 Public Constructors

  Name Description

KeyTemplate

Initializes a new instance of the KeyTemplate class.

 Public Methods

  Name Description

draw

Draws the specified key using this template.

getAlterCaseForeground

Gets the color of alter-case characters.

getBackground

Gets the background brush.

getBorder

Gets the Pen used to draw key borders.

getCornerRadius

Gets the radius of keys' rounded corners.

getHoverBackground

Gets the background of hovered keys.

getImageAlign

Gets how images are aligned inside keys.

getLowerCaseForeground

Gets the color of lower-case characters.

getPressedBackground

Gets the background of pressed keys.

getUpperCaseForeground

Gets the color of upper-case characters.

setAlterCaseForeground

Sets the color of alter-case characters.

setBackground

Sets the background brush.

setBorder

Sets the Pen used to draw key borders.

setCornerRadius

Sets the radius of keys' rounded corners.

setHoverBackground

Sets the background of hovered keys.

setImageAlign

Sets how images are aligned inside keys.

setLowerCaseForeground

Sets the color of lower-case characters.

setPressedBackground

Sets the background of pressed keys.

setUpperCaseForeground

Sets the color of upper-case characters.

 Protected Methods

  Name Description

drawBackground

Override this method to render custom key background.

drawFrame

Override this method to render custom key border.

 See Also