แก้ไข

แชร์ผ่าน


VisualStyleRenderer.GetTextMetrics(IDeviceContext) Method

Definition

Retrieves information about the font specified by the current visual style element.

public:
 System::Windows::Forms::VisualStyles::TextMetrics GetTextMetrics(System::Drawing::IDeviceContext ^ dc);
public System.Windows.Forms.VisualStyles.TextMetrics GetTextMetrics (System.Drawing.IDeviceContext dc);
member this.GetTextMetrics : System.Drawing.IDeviceContext -> System.Windows.Forms.VisualStyles.TextMetrics
Public Function GetTextMetrics (dc As IDeviceContext) As TextMetrics

Parameters

dc
IDeviceContext

The IDeviceContext this operation will use.

Returns

A TextMetrics that provides information about the font specified by the current visual style element.

Exceptions

dc is null.

Applies to