InkDrawingAttributes.Size InkDrawingAttributes.Size InkDrawingAttributes.Size InkDrawingAttributes.Size InkDrawingAttributes.Size Property

Definition

Gets or sets a value that indicates the dimensions of the pen tip (PenTip ) used to draw an InkStroke.

public : Size Size { get; set; }
Size Size();

void Size(Size size);
public Size Size { get; set; }
Public ReadWrite Property Size As Size
var size = inkDrawingAttributes.size;
inkDrawingAttributes.size = size;

Property Value

The Width and Height of the pen tip in . 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;
    }
}

For the complete example, see Ink App sample.

See also