InkDrawingAttributes.Size Property
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.
public:
property Size Size { Size get(); void set(Size value); };
Size Size();
void Size(Size value);
public Size Size { get; set; }
var size = inkDrawingAttributes.size;
inkDrawingAttributes.size = size;
Public Property Size As Size
Property Value
The Width and Height of the pen tip in device-independent pixels. The default value for each is 2.The shape of the PenTip can be specified as a Rectangle or a Circle.
Examples
The following example includes a function that shows how to set the Size (strokeSize
) of an InkStroke (stroke
).
function shapeStroke(stroke, width)
{
var att = stroke.drawingAttributes;
var strokeSize = att.size;
if (strokeSize.width !== width)
{
strokeSize.width = strokeSize.height = width;
att.size = strokeSize;
stroke.drawingAttributes = att;
return true;
}
else
{
return false;
}
}
Applies to
See also
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample