Table of Contents

Class OdfPicture

Namespace
OdfKit.Presentation
Assembly
OdfKit.dll

Represents an image shape in a slide. 表示投影片中的圖片圖形。

public class OdfPicture : OdfShape
Inheritance
OdfPicture
Inherited Members

Constructors

OdfPicture(OdfNode, OdfDocument)

Initializes a new instance of the OdfPicture class. 初始化 OdfPicture 類別的新執行個體。

public OdfPicture(OdfNode node, OdfDocument doc)

Parameters

node OdfNode

The underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。

doc OdfDocument

The owning ODF document instance. / 所屬的 ODF 文件執行個體。

OdfPicture(OdfNode, OdfDocument, OdfSlide?)

Represents an image shape in a slide. 表示投影片中的圖片圖形。

public OdfPicture(OdfNode node, OdfDocument doc, OdfSlide? slide)

Parameters

node OdfNode

The underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。

doc OdfDocument

The owning document instance. / 所屬的文件執行個體。

slide OdfSlide

The owning slide instance, or null when the shape does not belong to a presentation slide. / 所屬的投影片執行個體,若不屬於簡報投影片則為 null

OdfPicture(OdfNode, OdfSlide)

Initializes a new instance of the OdfPicture class. 初始化 OdfPicture 類別的新執行個體。

public OdfPicture(OdfNode node, OdfSlide slide)

Parameters

node OdfNode

The underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。

slide OdfSlide

The owning slide instance. / 所屬的投影片執行個體。

Properties

AltText

Gets or sets the image alternative text, corresponding to ODF svg:desc. 取得或設定圖片的替代文字,對應 ODF svg:desc

public string? AltText { get; set; }

Property Value

string

CropClip

Gets or sets the ODF crop rectangle for the image, corresponding to fo:clip. 取得或設定圖片的 ODF 裁切矩形,對應 fo:clip

public string? CropClip { get; set; }

Property Value

string

ImageHref

Gets the image reference path in the ODF package. 取得圖片在 ODF 封裝中的參照路徑。

public string? ImageHref { get; }

Property Value

string

Methods

ClearCrop()

Clears the image crop setting. 清除圖片裁切設定。

public OdfPicture ClearCrop()

Returns

OdfPicture

The current image instance. / 目前圖片執行個體。

SetCrop(OdfLength, OdfLength, OdfLength, OdfLength)

Sets the image crop rectangle. 設定圖片裁切矩形。

public OdfPicture SetCrop(OdfLength top, OdfLength right, OdfLength bottom, OdfLength left)

Parameters

top OdfLength

The top edge of the visible area. / 可見區域上緣。

right OdfLength

The right edge of the visible area. / 可見區域右緣。

bottom OdfLength

The bottom edge of the visible area. / 可見區域下緣。

left OdfLength

The left edge of the visible area. / 可見區域左緣。

Returns

OdfPicture

The current image instance. / 目前圖片執行個體。