TextClusterOptions Class

The options of TextMetrics.GetTextClusters and of CanvasRenderingContext2DBase.FillTextCluster (https://github.com/whatwg/html/pull/11000): the alignment and the baseline of the clusters, and for the drawing, the position that replaces the one of the cluster.

public sealed class TextClusterOptions

Constructors

NameDescription
TextClusterOptions()

TextClusterOptions()

public TextClusterOptions()

No documentation is available.

Properties

NameDescription
AlignGets the alignment of the clusters.
BaselineGets the baseline of the clusters.
XGets the horizontal position of a drawn cluster, which replaces TextCluster.X (ignored by getTextClusters()).
YGets the vertical position of a drawn cluster, which replaces TextCluster.Y (ignored by getTextClusters()).

Gets the horizontal position of a drawn cluster, which replaces TextCluster.X (ignored by getTextClusters()).

public double? X { get; init; }

Gets the vertical position of a drawn cluster, which replaces TextCluster.Y (ignored by getTextClusters()).

public double? Y { get; init; }