Region Struct
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.
Represents a visual region in a Microsoft.Maui.Controls UI.
public value class Region : IEquatable<Microsoft::Maui::Controls::Region>
public struct Region : IEquatable<Microsoft.Maui.Controls.Region>
type Region = struct
Public Structure Region
Implements IEquatable(Of Region)
- Inheritance
-
Region
- Implements
Remarks
Currently, regions represent rectangles, or collections of rectangles, only.
Methods
Contains(Double, Double) |
Returns |
Contains(Point) |
Returns |
Deflate() |
Returns a region shrunk by the values in the most recent inflation, or does nothing if there has not been a previous inflation. |
Equals(Object) | |
Equals(Region) | |
FromLines(Double[], Double, Double, Double, Double) |
Creates and returns a region that detects points inside a collection of rectangles created from the lines that are specified by the provided data. |
FromRectangles(IEnumerable<Rect>) | |
GetHashCode() | |
Inflate(Double) |
Returns a region that is expanded by or has all of its subregions expanded by the specified |
Inflate(Double, Double, Double, Double) |
Returns a region that is expanded by or has all of its subregions expanded by the specified values. |
Operators
Equality(Region, Region) | |
Inequality(Region, Region) |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應