DynamicRenderer.DrawingAttributes Property
Gets or sets the DrawingAttributes object used by the DynamicRenderer object.
Namespace: Microsoft.StylusInput
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Property DrawingAttributes As DrawingAttributes
'Usage
Dim instance As DynamicRenderer
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);
}
public function get DrawingAttributes () : DrawingAttributes
public function set DrawingAttributes (value : DrawingAttributes)
Property Value
Type: Microsoft.Ink.DrawingAttributes
The DrawingAttributes object used by the DynamicRenderer object.
Remarks
If this property is changed while a user is drawing a stroke, the new drawing attributes are not applied to the current stroke but take effect on the next stroke drawn. For example, setting this property in a StylusDown method of an IStylusAsyncPlugin implementation does not affect the stroke that is in the process of being created.
When a DisplaySettingsChanged event occurs, recalculate the Width and Height properties of the DrawingAttributes object in a DisplaySettingsChanged event handler. This is necessary to account for possible dots per inch (dpi) changes that result from the DisplaySettingsChanged event.
The following are default values for the drawing attributes:
Drawing Attribute |
Value |
---|---|
true |
|
Color.Black |
|
false |
|
1 |
|
false |
|
Ball |
|
0 |
|
53 |
Examples
This C# example sets the color of dynamically rendered strokes to red, by using a DynamicRenderer object, theDynamicRenderer.
theDynamicRenderer.DrawingAttributes.Color = Color.Red;
This Visual Basic .NET example sets the color of dynamically rendered strokes to red, by using a DynamicRenderer object, theDynamicRenderer.
theDynamicRenderer.DrawingAttributes.Color = Color.Red
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0