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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈