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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk