GeometryCombineMode Enum
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.
Specifies the different methods by which two geometries can be combined.
public enum class GeometryCombineMode
public enum GeometryCombineMode
type GeometryCombineMode =
Public Enum GeometryCombineMode
- Inheritance
Fields
Exclude | 3 | The second region is excluded from the first. Given two geometries, |
Intersect | 1 | The two regions are combined by taking their intersection. The new area consists of the overlapping region between the two geometries. |
Union | 0 | The two regions are combined by taking the union of both. The resulting geometry is geometry |
Xor | 2 | The two regions are combined by taking the area that exists in the first region but not the second and the area that exists in the second region but not the first. The new region consists of |
Examples
The following example shows how to combine two geometries using the Union combine mode.
<Path Stroke="Black" StrokeThickness="1" Fill="#CCCCFF">
<Path.Data>
<!-- Combines two geometries using the union combine mode. -->
<CombinedGeometry GeometryCombineMode="Union">
<CombinedGeometry.Geometry1>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="125,75" />
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path>
Remarks
The following illustration shows the different geometry combine modes.
Geometry Combine Modes
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기