Class MaskBuilder

Class MaskBuilder

名称: Aspose.Svg.Builder 會議: Aspose.SVG.dll (25.5.0)

创建CSS面具特性的建筑师类。这个类允许建造复杂的面具风格,使用各种特性,如面包来源,位置,尺寸,重复方式等。结果的链条可以在CSS中使用来定义一个元素的隐藏行为。

[ComVisible(true)]
public class MaskBuilder

Inheritance

object MaskBuilder

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

MaskBuilder()

public MaskBuilder()

Methods

BackgroundSize(双,双、长)

设置面具的背景尺寸。

public MaskBuilder BackgroundSize(double width, double height, LengthType type = LengthType.Px)

Parameters

width double

背景的宽度。

height double

背景的高度。

type LengthType

长度测量类型。

Returns

MaskBuilder

目前的MaskBuilder。

Build()

构建面具属性值作为链条。

public string Build()

Returns

string

面具属性的序列代表,适合在CSS中使用。

CompositingOperator(CompositingOperator)

为面具设置组合操作器。

public MaskBuilder CompositingOperator(CompositingOperator op)

Parameters

op CompositingOperator

组合操作员。

Returns

MaskBuilder

目前的MaskBuilder。

GeometryBox(GeometryBox)

把面具的地质盒子。

public MaskBuilder GeometryBox(GeometryBox box)

Parameters

box GeometryBox

地质盒子。

Returns

MaskBuilder

目前的MaskBuilder。

GeometryBoxNoclip(GeometryBox)

将面具的地质框放置,没有粘贴。

public MaskBuilder GeometryBoxNoclip(GeometryBox box)

Parameters

box GeometryBox

地质盒子。

Returns

MaskBuilder

目前的MaskBuilder。

MaskSourceId(线条)

将面具的来源 ID 设置。

public MaskBuilder MaskSourceId(string maskSourceId)

Parameters

maskSourceId string

面具源元素的ID。

Returns

MaskBuilder

目前的MaskBuilder。

Exceptions

ArgumentException

當 maskSourceId 是零或白空間時。

Position(双重,长度)

设置面具的位置。

public MaskBuilder Position(double position, LengthType type = LengthType.Px)

Parameters

position double

位置值。

type LengthType

长度测量类型。

Returns

MaskBuilder

目前的MaskBuilder。

Position(双,双、长)

设置面具的位置,使用水平和垂直值。

public MaskBuilder Position(double horizontal, double vertical, LengthType type = LengthType.Px)

Parameters

horizontal double

水平位置值。

vertical double

垂直位置值。

type LengthType

长度测量类型。

Returns

MaskBuilder

目前的MaskBuilder。

Position(垂直位置,双,长类型)

设置面具的位置,使用预定的水平位置和垂直值。

public MaskBuilder Position(HorizontalPosition horizontal, double vertical, LengthType type = LengthType.Px)

Parameters

horizontal HorizontalPosition

预定的水平位置。

vertical double

垂直位置值。

type LengthType

长度测量类型。

Returns

MaskBuilder

目前的MaskBuilder。

Position(垂直位置,双,长型)

设置面具的位置,使用预定的垂直位置和水平值。

public MaskBuilder Position(VerticalPosition vertical, double horizontal, LengthType type = LengthType.Px)

Parameters

vertical VerticalPosition

定义垂直位置。

horizontal double

水平位置值。

type LengthType

长度测量类型。

Returns

MaskBuilder

目前的MaskBuilder。

Position(垂直位置、水平位置)

设置面具的位置,使用预定义的水平和垂直位置。

public MaskBuilder Position(HorizontalPosition horizontal, VerticalPosition vertical)

Parameters

horizontal HorizontalPosition

预定的水平位置。

vertical VerticalPosition

定义垂直位置。

Returns

MaskBuilder

目前的MaskBuilder。

Position(HorizontalEdge, 双, VerticalEdg, Double, LongthType)

设置面具的位置,使用边缘和值。

public MaskBuilder Position(HorizontalEdge horizontalEdge, double horizontalValue, VerticalEdge verticalEdge, double verticalValue, LengthType type = LengthType.Px)

Parameters

horizontalEdge HorizontalEdge

垂直边缘位置。

horizontalValue double

水平位置值。

verticalEdge VerticalEdge

垂直边缘位置。

verticalValue double

垂直位置值。

type LengthType

长度测量类型。

Returns

MaskBuilder

目前的MaskBuilder。

RepeatStyle(RepeatStyle)

设置面具的重复风格。

public MaskBuilder RepeatStyle(RepeatStyle style)

Parameters

style RepeatStyle

重复风格。

Returns

MaskBuilder

目前的MaskBuilder。

 中文