Skip to the content.

PromptPlus API:StringStyle

Build Publish License NuGet Downloads

Back to List Api

StringStyle

Namespace: PPlus.Controls

Represents the text string with style

public struct StringStyle

Inheritance ObjectValueTypeStringStyle
Implements IEquatable<StringStyle>

Properties

Style

Get/Set Style/>

public Style Style { get; set; }

Property Value

Style

Text

Get/Set Text

public string Text { get; set; }

Property Value

String

Constructors

StringStyle()

Create empty StringStyle

StringStyle()

StringStyle(String)

Create StringStyle with text

StringStyle(string text)

Parameters

text String
The text

StringStyle(String, Style)

Create a new instance of String-Style

StringStyle(string text, Style style)

Parameters

text String
Text

style Style
StringStyle.Style text

Methods

Equals(StringStyle)

Checks if two StringStyle instances are equal.

bool Equals(StringStyle other)

Parameters

other StringStyle
The StringStyle to compare.

Returns

true if the two StringStyle are equal, otherwise false.

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

int GetHashCode()

Returns

Int32


Back to List Api