Version

GetCachedGraphics Method (EmbeddableEditorOwnerBase)

Called to get a graphics object suitable for doing metrics calculations only.
Syntax
'Declaration
 
Public Overridable Function GetCachedGraphics( _
   ByVal ownerContext As Object _
) As Graphics
public virtual Graphics GetCachedGraphics( 
   object ownerContext
)

Parameters

ownerContext
The owner context which will be used to get the Control this owner is associated with.

Return Value

A graphics object suitable for doing metrics calculations only. This graphics object shouldn't be rendered on.
Remarks

Do NOT call the Dispose method on the graphics object returned from this method.

Instead, each call to this method should be paired with a call to ReleaseCachedGraphics.

During graphics caching calls to GetCachedGraphics will return a single cached graphics object and calls to ReleaseCachedGraphics will be ignored.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also