PromptPlus API:StringStyle
StringStyle
Namespace: PPlus.Controls
Represents the text string with style
public struct StringStyle
Inheritance Object → ValueType → StringStyle
Implements IEquatable<StringStyle>
Properties
Style
Get/Set Style/>
public Style Style { get; set; }
Property Value
Text
Get/Set Text
public string Text { get; set; }
Property Value
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
GetHashCode()
int GetHashCode()