Description
The TextDecorationSkipInk
property in the BaseStyles
class represents the text-decoration-skip-ink
CSS property. This property is used to control how text decorations, such as underlines, interact with descenders in the text. It can be used to specify whether the decoration should skip over descenders or not, providing a cleaner look for text with decorations.
Usage
To use the TextDecorationSkipInk
property, you can set it to a value of type Sandbox.UI.TextSkipInk
. This property is nullable, meaning it can be set to null
if you want to remove any specific setting for text-decoration-skip-ink.
Example
// Example of setting the TextDecorationSkipInk property
var styles = new BaseStyles();
styles.TextDecorationSkipInk = TextSkipInk.Auto; // Automatically skip ink for text decorations
// To remove the setting
styles.TextDecorationSkipInk = null;