Table of Contents

Struct OdfBorder

Namespace
OdfKit.Styles
Assembly
OdfKit.dll

表示 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

style OdfBorder.BorderStyle

框線的樣式

width OdfLength

框線的寬度

color Color

框線的色彩

Remarks

建立新的 OdfBorder 執行個體。

Properties

Color

Gets the Color value. 取得框線的色彩。

public Color Color { get; }

Property Value

Color

None

Performs none. 取得一個表示無框線的 OdfBorder 結構。

public static OdfBorder None { get; }

Property Value

OdfBorder

Style

Gets the Style value. 取得框線的樣式。

public OdfBorder.BorderStyle Style { get; }

Property Value

OdfBorder.BorderStyle

Width

Gets the Width value. 取得框線的寬度。

public OdfLength Width { get; }

Property Value

OdfLength

Methods

Equals(OdfBorder)

Performs equals. 判斷目前的框線結構是否與另一個框線結構相等。

public bool Equals(OdfBorder other)

Parameters

other OdfBorder

要比較的另一個框線結構

Returns

bool

如果兩個結構相等則為 true,否則為 false

Equals(object?)

Performs equals. 判斷指定的物件是否與目前的框線結構相等。

public override bool Equals(object? obj)

Parameters

obj object

要比較的物件

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

borderString string

要解析的框線字串

Returns

OdfBorder

解析後的 OdfBorder 結構

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

left OdfBorder

要比較的左側結構

right OdfBorder

要比較的右側結構

Returns

bool

如果兩個結構相等則為 true,否則為 false

operator !=(OdfBorder, OdfBorder)

Performs equals. 判斷兩個 OdfBorder 結構是否不相等。

public static bool operator !=(OdfBorder left, OdfBorder right)

Parameters

left OdfBorder

要比較的左側結構

right OdfBorder

要比較的右側結構

Returns

bool

如果兩個結構不相等則為 true,否則為 false