Skip to main content

VizFontBuilder.Weight(Double) Method

Specifies font weight. Accepts values from 100 to 900 in increments of 100. Higher values increase boldness. Mirrors the client-side weight option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public VizFontBuilder Weight(
    double value
)

Parameters

Name Type Description
value Double

The option value.

Returns

Type Description
VizFontBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().Chart()
    .Title(title => title
        .Font(font => font
            .Weight(400)
        )
    )
)
See Also