Graphics.GetContextInfo 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
GetContextInfo(PointF, Region) |
取得累計位移和剪輯區域。 |
GetContextInfo() |
已淘汰.
取得累計圖形內容。 |
GetContextInfo(PointF) |
取得累計位移。 |
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
取得累計位移和剪輯區域。
public:
void GetContextInfo([Runtime::InteropServices::Out] System::Drawing::PointF % offset, [Runtime::InteropServices::Out] System::Drawing::Region ^ % clip);
C#
[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)
參數
- offset
- PointF
當這個方法傳回時,會包含累計位移。 此參數會被視為未初始化。
- clip
- Region
當這個方法傳回時,如果剪輯區域是無限的,則包含累計剪輯區域或 null
。 此參數會被視為未初始化。
- 屬性
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
Windows Desktop | 6, 7, 8, 9 |
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
警告
Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.
取得累計圖形內容。
public:
System::Object ^ GetContextInfo();
C#
[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 ();
C#
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
傳回
代表累計圖形內容的 Object。
- 屬性
備註
傳回值是物件陣列,其中第一個元素包含累計剪輯區域,而第二個元素則包含累計轉譯/轉換矩陣。
適用於
.NET 9 和其他版本
產品 | 版本 (已過時) |
---|---|
.NET | (6, 7, 8, 9) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |
Windows Desktop | 3.0, 3.1, 5 (6, 7, 8, 9) |
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
取得累計位移。
public:
void GetContextInfo([Runtime::InteropServices::Out] System::Drawing::PointF % offset);
C#
[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)
參數
- offset
- PointF
當這個方法傳回時,會包含累計位移。 此參數會被視為未初始化。
- 屬性
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
Windows Desktop | 6, 7, 8, 9 |