Udostępnij za pośrednictwem


InkToolbarCustomPen.CreateInkDrawingAttributes(Brush, Double) Method

Definition

Retrieves the InkToolbarCustomPen attributes used for an InkToolbarPenConfigurationControl.

public:
 virtual InkDrawingAttributes ^ CreateInkDrawingAttributes(Brush ^ brush, double strokeWidth) = CreateInkDrawingAttributes;
InkDrawingAttributes CreateInkDrawingAttributes(Brush const& brush, double const& strokeWidth);
public InkDrawingAttributes CreateInkDrawingAttributes(Brush brush, double strokeWidth);
function createInkDrawingAttributes(brush, strokeWidth)
Public Function CreateInkDrawingAttributes (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

When providing a custom pen, it is possible to derive from InkToolbarCustomPen and specify a custom InkToolbarPenConfigurationControl. The derived class overrides the CreateInkDrawingAttributesCore method to change the default InkDrawingAttributes settings.

Applies to

See also