[]
        
(Showing Draft Content)

C1.Win.C1ChartBase.baseChartStyle.GetContentSize

GetContentSize Method

GetContentSize(Graphics, SizeF, string, Image)

Calculates the new size of the content based on the specified width and style.

Declaration
public SizeF GetContentSize(Graphics g, SizeF sz, string str, Image img)
Parameters
Type Name Description
Graphics g

A Graphics object that encapsulates a GDI+ drawing surface.

SizeF sz

The initial content size.

string str

String to measure.

Image img

Image to measure.

Returns
Type Description
SizeF

Calculated size.

GetContentSize(Graphics, Size, string, Image)

Calculates the new size of the content based on the specified width and style.

Declaration
public Size GetContentSize(Graphics g, Size sz, string str, Image img)
Parameters
Type Name Description
Graphics g

A Graphics object that encapsulates a GDI+ drawing surface.

Size sz

The initial content size.

string str

String to measure.

Image img

Image to measure.

Returns
Type Description
Size

Calculated size.