SVGBuilderExtensions.FontSize

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

Sets the ‘font-size’ attribute for an SVG element using a numeric value and a specific length type.

public static TBuilder FontSize<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 font size value to set.
typeThe length type (e.g., px, em).

Return Value

The builder instance for chaining.

See Also


FontSize<TBuilder>(this TBuilder, FontSize)

Sets the ‘font-size’ attribute for an SVG element using a predefined font size value.

public static TBuilder FontSize<TBuilder>(this TBuilder builder, FontSize value)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe predefined font size value to set.

Return Value

The builder instance for chaining.

See Also