RichTextKit v0.2

RichString.Add Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Declaring Type: RichString

Overloads

Add(string)

Append text to this RichString

Add(string, string, Nullable<float>, Nullable<int>, Nullable<bool>, Nullable<UnderlineStyle>, Nullable<StrikeThroughStyle>, Nullable<float>, Nullable<SkiaSharp.SKColor>, Nullable<float>, Nullable<FontVariant>, Nullable<TextDirection>)

Adds text with various style attributes changed

Add(string)

Append text to this RichString

public RichString Add(string text);

Parameters

string text

The text to append

Returns

RichString

Add(string, string, Nullable<float>, Nullable<int>, Nullable<bool>, Nullable<UnderlineStyle>, Nullable<StrikeThroughStyle>, Nullable<float>, Nullable<SkiaSharp.SKColor>, Nullable<float>, Nullable<FontVariant>, Nullable<TextDirection>)

Adds text with various style attributes changed

public RichString Add(string text, string fontFamily = null, Nullable<float> fontSize = null, Nullable<int> fontWeight = null, Nullable<bool> fontItalic = null, Nullable<UnderlineStyle> underline = null, Nullable<StrikeThroughStyle> strikeThrough = null, Nullable<float> lineHeight = null, Nullable<SkiaSharp.SKColor> textColor = null, Nullable<float> letterSpacing = null, Nullable<FontVariant> fontVariant = null, Nullable<TextDirection> textDirection = null);

Parameters

string text

The text to append

string fontFamily = null

The new font family

Nullable<float> fontSize = null

The new font size

Nullable<int> fontWeight = null

The new font weight

Nullable<bool> fontItalic = null

The new font italic

Nullable<UnderlineStyle> underline = null

The new underline style

Nullable<StrikeThroughStyle> strikeThrough = null

The new strike-through style

Nullable<float> lineHeight = null

The new line height

Nullable<SkiaSharp.SKColor> textColor = null

The new text color

Nullable<float> letterSpacing = null

The new character spacing

Nullable<FontVariant> fontVariant = null

The new font variant

Nullable<TextDirection> textDirection = null

The new text direction

Returns

RichString

A reference to the same RichString instance

Subscribe for more like this. No spam, just fun tech stuff :)