Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
This example changes the color of a pre-existing Pen object
Example
myPen.Color = System.Drawing.Color.PeachPuff
myPen.Color = System.Drawing.Color.PeachPuff;
myPen->Color = System::Drawing::Color::PeachPuff;
Compiling the Code
This example requires:
- A Pen object named
myPen.
Robust Programming
You should call Dispose on objects that consume system resources (such as Pen objects) after you are finished using them.
See Also
Tasks
Reference
Concepts
Pens, Lines, and Rectangles in GDI+
Other Resources
Getting Started with Graphics Programming
Using a Pen to Draw Lines and Shapes