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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.