←Select platform

Context Property

Summary

Current graphics context associated with this object.

Syntax

C#
VB
C++
public Graphics Context { get; } 
Public ReadOnly Property Context() As System.Drawing.Graphics 
   Get 
public:  
   property System::Drawing::Graphics^ Context 
   { 
      System::Drawing::Graphics^ get() 
   } 

Property Value

The graphics context associated with this object if any.

Remarks

This property returns the value of System.Windows.Forms.PaintEventArgs.Graphics of PaintEventArgs. If the value of PaintEventArgs is null, then this property will return null as well.

Example

For an example, refer to PostRender.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly