VttRegion Class
A WebVTT region (https://w3c.github.io/webvtt/#the-vttregion-interface): a part of the video viewport in which the cues of the region are rendered.
public sealed class VttRegionConstructors
| Name | Description |
|---|---|
| VttRegion() | Creates a region (https://w3c.github.io/webvtt/#dom-vttregion-vttregion). |
VttRegion()
VttRegion.csCreates a region (https://w3c.github.io/webvtt/#dom-vttregion-vttregion).
public VttRegion()Properties
| Name | Description |
|---|---|
| Id | Gets or sets the identifier of the region (https://w3c.github.io/webvtt/#dom-vttregion-id). |
| Lines | Gets or sets the height of the region, a number of lines (https://w3c.github.io/webvtt/#dom-vttregion-lines). |
| RegionAnchorX | Gets or sets the horizontal offset of the anchor of the region, a percentage of its width (https://w3c.github.io/webvtt/#dom-vttregion-regionanchorx). |
| RegionAnchorY | Gets or sets the vertical offset of the anchor of the region, a percentage of its height (https://w3c.github.io/webvtt/#dom-vttregion-regionanchory). |
| Scroll | Gets or sets the scroll setting of the region (https://w3c.github.io/webvtt/#dom-vttregion-scroll). |
| ViewportAnchorX | Gets or sets the horizontal offset of the anchor of the region in the video viewport, a percentage of the width of the video (https://w3c.github.io/webvtt/#dom-vttregion-viewportanchorx). |
| ViewportAnchorY | Gets or sets the vertical offset of the anchor of the region in the video viewport, a percentage of the height of the video (https://w3c.github.io/webvtt/#dom-vttregion-viewportanchory). |
| Width | Gets or sets the width of the region, a percentage of the width of the video (https://w3c.github.io/webvtt/#dom-vttregion-width). |
Gets or sets the identifier of the region (https://w3c.github.io/webvtt/#dom-vttregion-id).
public string Id { get; set; }Lines
VttRegion.csGets or sets the height of the region, a number of lines (https://w3c.github.io/webvtt/#dom-vttregion-lines).
public uint Lines { get; set; }RegionAnchorX
VttRegion.csGets or sets the horizontal offset of the anchor of the region, a percentage of its width (https://w3c.github.io/webvtt/#dom-vttregion-regionanchorx).
public double RegionAnchorX { get; set; }Property value
Exceptions
DomException- An
IndexSizeErrorwhen the value is negative or greater than 100.
See also
RegionAnchorY
VttRegion.csGets or sets the vertical offset of the anchor of the region, a percentage of its height (https://w3c.github.io/webvtt/#dom-vttregion-regionanchory).
public double RegionAnchorY { get; set; }Property value
Exceptions
DomException- An
IndexSizeErrorwhen the value is negative or greater than 100.
See also
Scroll
VttRegion.csGets or sets the scroll setting of the region (https://w3c.github.io/webvtt/#dom-vttregion-scroll).
public ScrollSetting Scroll { get; set; }ViewportAnchorX
VttRegion.csGets or sets the horizontal offset of the anchor of the region in the video viewport, a percentage of the width of the video (https://w3c.github.io/webvtt/#dom-vttregion-viewportanchorx).
public double ViewportAnchorX { get; set; }Property value
Exceptions
DomException- An
IndexSizeErrorwhen the value is negative or greater than 100.
See also
ViewportAnchorY
VttRegion.csGets or sets the vertical offset of the anchor of the region in the video viewport, a percentage of the height of the video (https://w3c.github.io/webvtt/#dom-vttregion-viewportanchory).
public double ViewportAnchorY { get; set; }Property value
Exceptions
DomException- An
IndexSizeErrorwhen the value is negative or greater than 100.
See also
Width
VttRegion.csGets or sets the width of the region, a percentage of the width of the video (https://w3c.github.io/webvtt/#dom-vttregion-width).
public double Width { get; set; }Property value
Exceptions
DomException- An
IndexSizeErrorwhen the value is negative or greater than 100.