Class OdfImageCropInfo
Represents the crop bounds of an image (corresponding to the rect(...) syntax of the fo:clip attribute).
表示影像的裁切邊界(對應 fo:clip 屬性的 rect(...) 語法)。
public sealed class OdfImageCropInfo
- Inheritance
-
OdfImageCropInfo
- Inherited Members
Constructors
OdfImageCropInfo(string, string, string, string)
Represents the crop bounds of an image (corresponding to the rect(...) syntax of the fo:clip attribute).
表示影像的裁切邊界(對應 fo:clip 屬性的 rect(...) 語法)。
public OdfImageCropInfo(string top, string right, string bottom, string left)
Parameters
topstringThe top crop bound. / 頂部裁切邊界。
rightstringThe right crop bound. / 右側裁切邊界。
bottomstringThe bottom crop bound. / 底部裁切邊界。
leftstringThe left crop bound. / 左側裁切邊界。
Properties
Bottom
Gets the bottom crop bound. 取得底部裁切邊界。
public string Bottom { get; }
Property Value
Left
Gets the left crop bound. 取得左側裁切邊界。
public string Left { get; }
Property Value
Right
Gets the right crop bound. 取得右側裁切邊界。
public string Right { get; }
Property Value
Top
Gets the top crop bound. 取得頂部裁切邊界。
public string Top { get; }
Property Value
Methods
ToString()
Formats the current crop bounds as an fo:clip attribute value.
將目前的裁切邊界格式化為 fo:clip 屬性值。
public override string ToString()
Returns
- string
The attribute string in
rect(top, right, bottom, left)format. /rect(top, right, bottom, left)格式的屬性字串。
TryParse(string?, out OdfImageCropInfo?)
Attempts to parse an fo:clip attribute value into an OdfImageCropInfo.
嘗試將 fo:clip 屬性值剖析為 OdfImageCropInfo。
public static bool TryParse(string? clip, out OdfImageCropInfo? crop)
Parameters
clipstringThe raw
fo:clipattribute text, in the formrect(top, right, bottom, left). /fo:clip屬性原文,格式為rect(top, right, bottom, left)。cropOdfImageCropInfoThe crop bounds returned on successful parsing. / 剖析成功時傳回的裁切邊界。