VizFontBuilder.Weight(JS) Method
In This Article
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
C#
public VizFontBuilder Weight(
JS value
)
#Parameters
Name | Type | Description |
---|---|---|
value | JS | A Java |
#Returns
Type | Description |
---|---|
Viz |
A reference to this instance after the method is called. |
#Remarks
Use the new JS() expression to set the option’s value.
<script>
var myValue = ...;
</script>
@(Html.DevExtreme().Chart()
.Title(title => title
.Font(font => font
.Weight(new JS("myValue"))
)
)
)
See Also