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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.