Skip to main content
InkDrawingAttributes.FitToCurve | fitToCurve property

Gets or sets a value that indicates whether a Bezier curve or a collection of straight line segments is used to draw an InkStroke.

Syntax


var fitToCurve = inkDrawingAttributes.fitToCurve;
inkDrawingAttributes.fitToCurve = fitToCurve;

public bool FitToCurve { get; set; }

Public Property FitToCurve As Boolean

public:
property bool FitToCurve { 
   bool get();
   void set (bool value);
}

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

true if a Bezier curve is used; otherwise false. The default value is false.

Examples

The following example demonstrates how to set the FitToCurve attribute for all strokes managed by this InkManager object (inkManager) that are created after the SetDefaultDrawingAttributes method call.


var inkManager = new Windows.UI.Input.Inking.InkManager();
var drawingAttributes = 
     new Windows.UI.Input.Inking.InkDrawingAttributes();
// True is the Default value for fitToCurve.
drawingAttributes.fitToCurve = false;
inkManager.setDefaultDrawingAttributes(drawingAttributes);

For the complete example, see Ink App sample.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Input.Inking
Windows::UI::Input::Inking [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Input.Inking
Windows::UI::Input::Inking [C++]

Metadata

Windows.winmd

See also

InkDrawingAttributes
Pen and stylus interactions
Samples
Ink sample
Simple ink sample
Complex ink sample