ContentCoordinateConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts between a local coordinate space and the system screen coordinates.
[WebHostHidden]
public ref class ContentCoordinateConverter
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class ContentCoordinateConverter
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ContentCoordinateConverter
Public Class ContentCoordinateConverter
- Inheritance
- Attributes
Methods
ConvertLocalToScreen(Point) |
Converts the local coordinates of the supplied point to screen coordinate space (adjusted for RasterizationScale). |
ConvertLocalToScreen(Point[]) |
Converts the local coordinates of the supplied point collection to screen coordinate space (adjusted for RasterizationScale). |
ConvertLocalToScreen(Point[], ContentCoordinateRoundingMode) |
Converts the local coordinates of the supplied point collection to screen coordinate space (adjusted for RasterizationScale) using the specified rounding mode. |
ConvertLocalToScreen(Rect) |
Converts the local coordinates of the supplied rect to screen coordinate space (adjusted for RasterizationScale). |
ConvertScreenToLocal(PointInt32) |
Converts the screen coordinates of the supplied point to local coordinate space (adjusted for RasterizationScale). |
ConvertScreenToLocal(PointInt32[]) |
Converts the screen coordinates of the supplied point collection to local coordinate space (adjusted for RasterizationScale). |
ConvertScreenToLocal(RectInt32) |
Converts the screen coordinates of the supplied rect to local coordinate space (adjusted for RasterizationScale). |
CreateForWindowId(WindowId) |
Creates a new ContentCoordinateConverter object for the specified WindowId. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應