ערוך

שתף באמצעות


Graphics.GetContextInfo Method

Definition

Overloads

GetContextInfo(PointF, Region)

Gets the cumulative offset and clip region.

GetContextInfo()
Obsolete.

Gets the cumulative graphics context.

GetContextInfo(PointF)

Gets the cumulative offset.

GetContextInfo(PointF, Region)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Gets the cumulative offset and clip region.

public:
 void GetContextInfo([Runtime::InteropServices::Out] System::Drawing::PointF % offset, [Runtime::InteropServices::Out] System::Drawing::Region ^ % clip);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public void GetContextInfo (out System.Drawing.PointF offset, out System.Drawing.Region? clip);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.GetContextInfo : PointF * Region -> unit
Public Sub GetContextInfo (ByRef offset As PointF, ByRef clip As Region)

Parameters

offset
PointF

When this method returns, contains the cumulative offset. This parameter is treated as uninitialized.

clip
Region

When this method returns, contains the cumulative clip region or null if the clip region is infinite. This parameter is treated as uninitialized.

Attributes

Applies to

GetContextInfo()

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Caution

Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.

Gets the cumulative graphics context.

public:
 System::Object ^ GetContextInfo();
[System.Obsolete("Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.", DiagnosticId="SYSLIB0016", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public object GetContextInfo ();
public object GetContextInfo ();
[<System.Obsolete("Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.", DiagnosticId="SYSLIB0016", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.GetContextInfo : unit -> obj
member this.GetContextInfo : unit -> obj
Public Function GetContextInfo () As Object

Returns

An Object representing the cumulative graphics context.

Attributes

Remarks

The return value is an object array where the first element contains the cumulative clip region and the second element contains the cumulative translate/transform matrix.

Applies to

GetContextInfo(PointF)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Gets the cumulative offset.

public:
 void GetContextInfo([Runtime::InteropServices::Out] System::Drawing::PointF % offset);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public void GetContextInfo (out System.Drawing.PointF offset);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.GetContextInfo : PointF -> unit
Public Sub GetContextInfo (ByRef offset As PointF)

Parameters

offset
PointF

When this method returns, contains the cumulative offset. This parameter is treated as uninitialized.

Attributes

Applies to