Поделиться через


InkEdit.DrawingAttributes - свойство

Обновлен: Ноябрь 2007

Gets or sets the drawing attributes to apply to ink as it is drawn.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
<BrowsableAttribute(False)> _
Public Property DrawingAttributes As DrawingAttributes
'Применение
Dim instance As InkEdit
Dim value As DrawingAttributes

value = instance.DrawingAttributes

instance.DrawingAttributes = value
[BrowsableAttribute(false)]
public DrawingAttributes DrawingAttributes { get; set; }
[BrowsableAttribute(false)]
public:
property DrawingAttributes^ DrawingAttributes {
    DrawingAttributes^ get ();
    void set (DrawingAttributes^ value);
}
/** @property */
/** @attribute BrowsableAttribute(false) */
public DrawingAttributes get_DrawingAttributes()
/** @property */
/** @attribute BrowsableAttribute(false) */
public  void set_DrawingAttributes(DrawingAttributes value)
public function get DrawingAttributes () : DrawingAttributes
public function set DrawingAttributes (value : DrawingAttributes)

Значение свойства

Тип: Microsoft.Ink.DrawingAttributes
The DrawingAttributes object to apply to ink as it is drawn. This property cannot be set to nullссылка null (Nothing в Visual Basic) (Nothing in Microsoft® Visual Basic® .NET).

Заметки

The DrawingAttributes property specifies the appearance of ink. For example, you can specify the width or color of ink.

The DrawingAttributes property specifies the drawing attributes for ink as it is drawn and before recognition occurs. In this way the InkEdit.DrawingAttributes property is different from the Stroke.DrawingAttributes property, which specifies the attributes for ink that was previously collected. The InkEdit.DrawingAttributes property is more analogous to the InkPicture.DefaultDrawingAttributes property; however, with InkEdit.DrawingAttributes the FitToCurve property is set to true by default.

Примеры

In this example, the DrawingAttributes property is modified to change the color and the width of the rendered ink.

mInkEdit.DrawingAttributes.Color = Color.Blue
mInkEdit.DrawingAttributes.Width = 106
mInkEdit.DrawingAttributes.Color = Color.Blue;
mInkEdit.DrawingAttributes.Width = 106;

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkEdit Класс

InkEdit - члены

Microsoft.Ink - пространство имен

DrawingAttributes

InkCollector.DefaultDrawingAttributes