VisualStyleRenderer.GetTextMetrics(IDeviceContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.