InkToolbarCustomPen.CreateInkDrawingAttributes(Brush, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- InkDrawingAttributes
- InkDrawingAttributesChanged
- CreateInkDrawingAttributesCore(Brush, Double)
- Pen and stylus interactions
- Add an InkToolbar to a Universal Windows Platform (UWP) app
- Get Started Tutorial: Support ink in your UWP app
- Ink sample (JavaScript)
- Get Started Tutorial: Support ink in your UWP app
- Coloring book sample
- Family notes sample