InkToolbarCustomPen.CreateInkDrawingAttributesCore(Brush, Double) Method

Definition

When overridden in a derived class, retrieves an InkDrawingAttributes object used to specify the ConfigurationContent for an InkToolbarCustomPen.

This method is not called by application code.

protected:
 virtual InkDrawingAttributes ^ CreateInkDrawingAttributesCore(Brush ^ brush, double strokeWidth) = CreateInkDrawingAttributesCore;
InkDrawingAttributes CreateInkDrawingAttributesCore(Brush const& brush, double const& strokeWidth);
protected virtual InkDrawingAttributes CreateInkDrawingAttributesCore(Brush brush, double strokeWidth);
function createInkDrawingAttributesCore(brush, strokeWidth)
Protected Overridable Function CreateInkDrawingAttributesCore (brush As Brush, strokeWidth As Double) As InkDrawingAttributes

Parameters

brush
Brush

The brush used to draw the stroke. The default is 0 (Black).

strokeWidth
Double

double

The width of the stroke. The default is 0.

Returns

The attributes applied to the InkStroke when it is drawn.

Remarks

An InkToolbarCustomPenButton can reuse the standard InkToolbarPenConfigurationControl object to configure an optional settings flyout for the custom pen. An "extension glyph" is displayed on the button to indicate the existence of the flyout.

Derive from InkToolbarCustomPen and specify a custom InkToolbarPenConfigurationControl. Override the CreateInkDrawingAttributesCore method to change the default InkDrawingAttributes settings.

Applies to

See also