Condividi tramite


Classe DrawingAttributes

Aggiornamento: novembre 2007

Rappresenta gli attributi applicati all'input penna quando viene disegnato.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Sintassi

'Dichiarazione
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class DrawingAttributes _
    Implements ICloneable
'Utilizzo
Dim instance As DrawingAttributes
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DrawingAttributes : ICloneable
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class DrawingAttributes : ICloneable
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class DrawingAttributes implements ICloneable
public class DrawingAttributes implements ICloneable

Note

Questi attributi di disegno possono essere associati a un tratto o a un cursore e possono specificare impostazioni quali colore, spessore e trasparenza.

Per specificare gli attributi di disegno di un tratto, utilizzare la proprietà DrawingAttributes dell'oggetto Stroke. Per specificare gli attributi di disegno di tutti i tratti contenuti in un insieme di tratti, chiamare il metodo ModifyDrawingAttributes dell'insieme Strokes.

Tutti gli oggetti InkCollector, InkOverlay e i controlli InkPicture possono specificare un set diverso di attributi di disegno per lo stesso cursore. Utilizzare la proprietà DrawingAttributes dell'oggetto Cursor per ottenere o impostare gli attributi di disegno di un cursore.

Gerarchia di ereditarietà

System.Object
  Microsoft.Ink.DrawingAttributes

Codice thread safe

Qualsiasi membro static (Shared in Visual Basic) pubblico di questo tipo è thread-safe. I membri di istanza non sono garantiti come thread-safe.

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

Membri DrawingAttributes

Spazio dei nomi Microsoft.Ink

Stroke.DrawingAttributes

Strokes.ModifyDrawingAttributes

Cursor.DrawingAttributes

InkCollector.DefaultDrawingAttributes

InkOverlay.DefaultDrawingAttributes

InkPicture.DefaultDrawingAttributes

InkEdit.DrawingAttributes