SVGBuilderExtensions.BaselineShift

BaselineShift<TBuilder>(this TBuilder, BaseLineShift)

Sets the ‘baseline-shift’ attribute for an SVG element using a predefined value.

public static TBuilder BaselineShift<TBuilder>(this TBuilder builder, BaseLineShift value)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe baseline shift value to set.

Return Value

The builder instance for chaining.

See Also


BaselineShift<TBuilder>(this TBuilder, double, LengthType)

Sets the ‘baseline-shift’ attribute for an SVG element using a numeric value.

public static TBuilder BaselineShift<TBuilder>(this TBuilder builder, double value, 
    LengthType type = LengthType.Px)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe numeric value for baseline shift.
typeThe type of length unit.

Return Value

The builder instance for chaining.

See Also