GeometryCombineMode Enumeration
Collapse the table of content
Expand the table of content

GeometryCombineMode Enumeration


Specifies the different methods by which two geometries can be combined.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public enum GeometryCombineMode

Member nameDescription

The second region is excluded from the first. Given two geometries, A and B, the area of geometry B is removed from the area of geometry A, producing a region that is A-B.


The two regions are combined by taking their intersection. The new area consists of the overlapping region between the two geometries.


The two regions are combined by taking the union of both. The resulting geometry is geometry A + geometry B.


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 (A-B) + (B-A), where A and B are geometries.

The following illustration shows the different geometry combine modes.

Different combine modes applied to two geometries

Geometry Combine Modes

Legacy Code Example

The following example shows how to combine two geometries using the Union combine mode.

Code snippet is not found. Confirm that the code snippet name 'geometrysample' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft