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


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

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

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

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

Синтаксис

'Декларация
Public Property DrawingAttributes As DrawingAttributes
'Применение
Dim instance As Stroke
Dim value As DrawingAttributes

value = instance.DrawingAttributes

instance.DrawingAttributes = value
public DrawingAttributes DrawingAttributes { get; set; }
public:
property DrawingAttributes^ DrawingAttributes {
    DrawingAttributes^ get ();
    void set (DrawingAttributes^ value);
}
/** @property */
public DrawingAttributes get_DrawingAttributes()
/** @property */
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. If this object is nullссылка null (Nothing в Visual Basic) (Nothing in Microsoft Visual Basic .NET), the Stroke uses the default drawing attributes of the ink collector object.

Заметки

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

Successive calls to the DrawingAttributes property change only the drawing attributes of new strokes. They do not apply to strokes that are already collected or being collected.

ms572063.alert_note(ru-ru,VS.90).gifПримечание.

The DefaultDrawingAttributes property (InkCollector.DefaultDrawingAttributes, InkOverlay.DefaultDrawingAttributes, or Microsoft.Ink.InkPicture) contains the drawing attributes that all Stroke objects use unless they set their own DrawingAttributes property. For example, a new Stroke object on which DrawingAttributes is not set and an old Stroke object on which the DrawingAttributes is set to nullссылка null (Nothing в Visual Basic) (Nothing in Visual Basic .NET) both use DefaultDrawingAttributes property of the ink collector.

Примеры

This example gets the DrawingAttributes property of the first selected stroke of an InkOverlay object.

If mInkOverlay.Selection.Count > 0 Then
    Dim firstSelectedDA As DrawingAttributes = mInkOverlay.Selection(0).DrawingAttributes
End If
if (mInkOverlay.Selection.Count > 0)
{
    DrawingAttributes firstSelectedDA = mInkOverlay.Selection[0].DrawingAttributes;
}

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

Stroke Класс

Stroke - члены

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

Stroke

DrawingAttributes

Cursor

Cursor.DrawingAttributes

InkCollector.DefaultDrawingAttributes

InkOverlay.DefaultDrawingAttributes

InkPicture.DefaultDrawingAttributes