Partilhar via


InkDrawingAttributes.FitToCurve Propriedade

Definição

Obtém ou define um valor que indica se uma curva de Bézier ou uma coleção de segmentos de linha reta é usada para desenhar um InkStroke.

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

void FitToCurve(bool value);
public bool FitToCurve { get; set; }
var boolean = inkDrawingAttributes.fitToCurve;
inkDrawingAttributes.fitToCurve = boolean;
Public Property FitToCurve As Boolean

Valor da propriedade

Boolean

bool

true se uma curva de Bézier for usada; caso contrário , false. O valor padrão é true.

Exemplos

O exemplo a seguir demonstra como definir o atributo FitToCurve para todos os traços gerenciados por esse objeto InkManager (inkManager) que são criados após a chamada do método SetDefaultDrawingAttributes .

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);

Aplica-se a

Confira também