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 TextClusterOptionsConstructors
| Name | Description |
|---|---|
| TextClusterOptions() |
TextClusterOptions()
public TextClusterOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Align | Gets the alignment of the clusters. |
| Baseline | Gets the baseline of the clusters. |
| X | Gets the horizontal position of a drawn cluster, which replaces TextCluster.X (ignored by getTextClusters()). |
| Y | Gets the vertical position of a drawn cluster, which replaces TextCluster.Y (ignored by getTextClusters()). |
Gets the alignment of the clusters.
public CanvasTextAlign? Align { get; init; }Gets the baseline of the clusters.
public CanvasTextBaseline? Baseline { get; init; }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; }