Graphics.GetContextInfo Méthode

Définition

Surcharges

GetContextInfo()
Obsolète.

Obtient le contexte graphique cumulé.

GetContextInfo(PointF)

Obtient le décalage cumulé.

GetContextInfo(PointF, Region)

Obtient le décalage cumulé et la région d’élément.

GetContextInfo()

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

Attention

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

Obtient le contexte graphique cumulé.

public:
 System::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")]
public object GetContextInfo ();
member this.GetContextInfo : unit -> obj
[<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
Public Function GetContextInfo () As Object

Retours

Object représentant le contexte graphique cumulé.

Attributs

Remarques

La valeur de retour est un tableau d’objets où le premier élément contient la région de clip cumulative et le deuxième élément contient la matrice de conversion/transformation cumulative.

S’applique à

GetContextInfo(PointF)

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

Obtient le décalage cumulé.

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)

Paramètres

offset
PointF

Lorsque cette méthode retourne, contient le décalage cumulé. Ce paramètre est traité comme étant non initialisé.

Attributs

S’applique à

GetContextInfo(PointF, Region)

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

Obtient le décalage cumulé et la région d’élément.

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)

Paramètres

offset
PointF

Lorsque cette méthode retourne, contient le décalage cumulé. Ce paramètre est traité comme étant non initialisé.

clip
Region

Lorsque cette méthode retourne, contient la région de clip cumulée ou null si la région de clip est infinie. Ce paramètre est traité comme étant non initialisé.

Attributs

S’applique à