Table of Contents

Class OdfImageLayout

Namespace
OdfKit.Text
Assembly
OdfKit.dll

Encapsulates image layout settings, such as border, margin, wrap mode, crop, and opacity. 封裝影像版面配置設定,例如外框線、影像間距、環繞模式、裁剪及透明度等。

public sealed class OdfImageLayout
Inheritance
OdfImageLayout
Inherited Members

Properties

Border

Gets or sets the border (maps to fo:border, e.g. "0.06pt solid #000000"). 取得或設定外框線(對應 fo:border,例如 "0.06pt solid #000000")。

public string? Border { get; set; }

Property Value

string

Crop

Gets or sets the image's crop region (maps to fo:clip, formatted as e.g. "rect(0cm, 0cm, 0cm, 0cm)"). 取得或設定影像的裁剪區域設定(對應 fo:clip,格式如 "rect(0cm, 0cm, 0cm, 0cm)")。

public string? Crop { get; set; }

Property Value

string

Margin

Gets or sets the image's margin on all sides (maps to fo:margin, e.g. "0.5cm"). 取得或設定影像的四邊間距(對應 fo:margin,例如 "0.5cm")。

public string? Margin { get; set; }

Property Value

string

MarginBottom

Gets or sets the image's bottom margin (maps to fo:margin-bottom). 取得或設定影像的下方間距(對應 fo:margin-bottom)。

public string? MarginBottom { get; set; }

Property Value

string

MarginLeft

Gets or sets the image's left margin (maps to fo:margin-left). 取得或設定影像的左方間距(對應 fo:margin-left)。

public string? MarginLeft { get; set; }

Property Value

string

MarginRight

Gets or sets the image's right margin (maps to fo:margin-right). 取得或設定影像的右方間距(對應 fo:margin-right)。

public string? MarginRight { get; set; }

Property Value

string

MarginTop

Gets or sets the image's top margin (maps to fo:margin-top). 取得或設定影像的上方間距(對應 fo:margin-top)。

public string? MarginTop { get; set; }

Property Value

string

Opacity

Gets or sets the image opacity (e.g. "50%" or an equivalent percentage; written to draw:image-opacity or draw:opacity). 取得或設定影像透明度(例如 "50%" 或對應百分比,寫入 draw:image-opacitydraw:opacity)。

public string? Opacity { get; set; }

Property Value

string

Wrap

Gets or sets the text-wrap mode (maps to style:wrap; common values are none, left, right, parallel, run-through). 取得或設定文繞圖的環繞模式(對應 style:wrap,常見值為 none, left, right, parallel, run-through)。

public string? Wrap { get; set; }

Property Value

string