共用方式為


DiagramPaintEventArgs.Graphics Property

Gets the Graphics object used to paint.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public ReadOnly Property Graphics As Graphics
    Get
public Graphics Graphics { get; }
public:
property Graphics^ Graphics {
    Graphics^ get ();
}
member Graphics : Graphics
function get Graphics () : Graphics

Property Value

Type: System.Drawing.Graphics

.NET Framework Security

See Also

Reference

DiagramPaintEventArgs Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace