Share via


Microsoft.Maui.Controls.Shapes Namespace

Provides classes and supporting types to work with shapes and transformations.

Classes

Name Description
ArcSegment

Represents a path segment that draws an elliptical arc between two points.

BezierSegment

Represents a path segment that draws a cubic Bezier curve defined by three points.

CompositeTransform

A transform that combines multiple transform operations (scale, skew, rotate, translate) into a single transform.

Ellipse

A shape that draws an ellipse or circle.

EllipseGeometry

Represents the geometry of an ellipse or circle.

Geometry

The base class for all geometry objects that describe 2D shapes.

GeometryCollection

A collection of Geometry objects.

GeometryGroup

A composite Geometry that combines multiple Geometry objects into a single shape.

GeometryHelper

Provides helper methods for geometry operations such as flattening curves into polylines.

Line

A shape that draws a straight line between two points.

LineGeometry

Represents the geometry of a line.

LineSegment

A path segment that draws a straight line to a specified point.

MatrixExtensions
MatrixTransform

A transform that uses a Matrix to perform arbitrary linear transformations.

MatrixTypeConverter

A type converter that converts strings to Matrix objects.

Path

A shape that can draw complex geometries defined by a PathGeometry.

PathFigure

Represents a subsection of a geometry, containing a collection of path segments.

PathFigureCollection

A collection of PathFigure objects that make up a PathGeometry.

PathFigureCollectionConverter

A type converter that converts path markup syntax strings to PathFigureCollection objects.

PathGeometry

Represents a complex geometry composed of PathFigure objects.

PathGeometryConverter

A type converter that converts path markup syntax strings to Geometry objects.

PathSegment

The base class for all path segment types that define a portion of a PathFigure.

PathSegmentCollection

A collection of PathSegment objects that define the geometry of a PathFigure.

PointCollectionConverter

A type converter that converts strings to PointCollection objects.

PolyBezierSegment

A path segment that draws one or more connected cubic Bezier curves.

Polygon

A shape that draws a closed polygon from a series of connected lines.

Polyline

A shape that draws a series of connected straight lines. Unlike Polygon, a polyline is not automatically closed.

PolyLineSegment

A path segment that draws a series of connected straight lines.

PolyQuadraticBezierSegment

A path segment that defines one or more connected quadratic Bezier curves.

QuadraticBezierSegment

Represents a path segment that draws a quadratic Bezier curve.

Rectangle

A Shape that draws a rectangle, optionally with rounded corners via RadiusX and RadiusY.

RectangleGeometry

Represents the geometry of a rectangle.

RotateTransform

A transform that rotates an element around a specified center point.

RoundRectangle
RoundRectangleGeometry

Represents a geometry that describes a rounded rectangle.

ScaleTransform

A transform that scales an element horizontally and/or vertically from a specified center point.

Shape

Base class for shape elements, such as Ellipse, Line, Polygon, Polyline, and Rectangle.

SkewTransform

A transform that skews (shears) an element by the specified angles.

StrokeShapeTypeConverter
Transform

Base class for all transforms that can be applied to shapes.

TransformCollection

A collection of Transform objects.

TransformGroup

Represents a composite Transform composed of multiple transforms applied in sequence.

TransformTypeConverter

Converts a string representation of a matrix into a Transform object.

TranslateTransform

A transform that translates (moves) an element by a specified offset.

Structs

Name Description
Matrix

Represents a 3x3 affine transformation matrix used for 2D transformations such as rotation, scaling, skewing, and translation.

Interfaces

Name Description
IGeometry

Enable you to describe the geometry of a 2D shape.

Enums

Name Description
FillRule

Specifies how the interior of a shape is determined.

PenLineCap

Specifies the shape at the end of a line or segment.

PenLineJoin

Specifies the shape at the vertices where two lines meet.