DrawingStyleExtensionsCreateFont Method

Spotfire 14.3 API Reference

Note: This API is now obsolete.

Creates a font from current settings.

Namespace:  Spotfire.Dxp.Framework.Styles
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
[ObsoleteAttribute("This API will not work on Linux. Please use CreateFontMetadata instead.")]
public static Font CreateFont(
	this StyleProperties styleProperties
)

Parameters

styleProperties
Type: Spotfire.Dxp.Framework.StylesStyleProperties
The style properties.

Return Value

Type: Font
A font. Caller is responsible for disposing it when done.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StyleProperties. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Version Information

Supported in: 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
Obsolete (compiler warning) in 14.3
Obsolete (compiler warning) in 14.2
Obsolete (compiler warning) in 14.1
Obsolete (compiler warning) in 14.0
Obsolete (compiler warning) in 12.5
See Also

Reference