Struct OdfBorder
表示 ODF 框線的唯讀結構。
public readonly struct OdfBorder : IEquatable<OdfBorder>
- Implements
- Inherited Members
Remarks
建立新的 OdfBorder 執行個體。
Constructors
OdfBorder(BorderStyle, OdfLength, Color)
表示 ODF 框線的唯讀結構。
public OdfBorder(OdfBorder.BorderStyle style, OdfLength width, Color color)
Parameters
styleOdfBorder.BorderStyle框線的樣式
widthOdfLength框線的寬度
colorColor框線的色彩
Remarks
建立新的 OdfBorder 執行個體。
Properties
Color
Gets the Color value. 取得框線的色彩。
public Color Color { get; }
Property Value
None
Performs none. 取得一個表示無框線的 OdfBorder 結構。
public static OdfBorder None { get; }
Property Value
Style
Gets the Style value. 取得框線的樣式。
public OdfBorder.BorderStyle Style { get; }
Property Value
Width
Gets the Width value. 取得框線的寬度。
public OdfLength Width { get; }
Property Value
Methods
Equals(OdfBorder)
Performs equals. 判斷目前的框線結構是否與另一個框線結構相等。
public bool Equals(OdfBorder other)
Parameters
otherOdfBorder要比較的另一個框線結構
Returns
- bool
如果兩個結構相等則為 true,否則為 false
Equals(object?)
Performs equals. 判斷指定的物件是否與目前的框線結構相等。
public override bool Equals(object? obj)
Parameters
objobject要比較的物件
Returns
- bool
如果指定的物件與目前的結構相等則為 true,否則為 false
GetHashCode()
Gets hash code. 傳回此框線結構的雜湊碼。
public override int GetHashCode()
Returns
- int
一個 32 位元有正負號的整數雜湊碼
Parse(string)
Performs the Parse operation. 解析框線字串並傳回 OdfBorder 結構。
public static OdfBorder Parse(string borderString)
Parameters
borderStringstring要解析的框線字串
Returns
ToString()
Converts to string. 將目前的框線結構轉換為其字串表示法。
public override string ToString()
Returns
- string
代表目前結構的字串
Operators
operator ==(OdfBorder, OdfBorder)
Performs equals. 判斷兩個 OdfBorder 結構是否相等。
public static bool operator ==(OdfBorder left, OdfBorder right)
Parameters
Returns
- bool
如果兩個結構相等則為 true,否則為 false
operator !=(OdfBorder, OdfBorder)
Performs equals. 判斷兩個 OdfBorder 結構是否不相等。
public static bool operator !=(OdfBorder left, OdfBorder right)
Parameters
Returns
- bool
如果兩個結構不相等則為 true,否則為 false