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
nodeOdfNodeThe underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。
docOdfDocumentThe 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
nodeOdfNodeThe underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。
docOdfDocumentThe owning document instance. / 所屬的文件執行個體。
slideOdfSlideThe owning slide instance, or
nullwhen 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
nodeOdfNodeThe underlying OdfKit.DOM.OdfNode instance. / 底層的 OdfKit.DOM.OdfNode 執行個體。
slideOdfSlideThe 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
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
ImageHref
Gets the image reference path in the ODF package. 取得圖片在 ODF 封裝中的參照路徑。
public string? ImageHref { get; }
Property Value
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
topOdfLengthThe top edge of the visible area. / 可見區域上緣。
rightOdfLengthThe right edge of the visible area. / 可見區域右緣。
bottomOdfLengthThe bottom edge of the visible area. / 可見區域下緣。
leftOdfLengthThe left edge of the visible area. / 可見區域左緣。
Returns
- OdfPicture
The current image instance. / 目前圖片執行個體。