windowsforms-devexpress-dot-xtraeditors-dot-basecontrol-7858e189.md
Returns the object which contains the internal information used to render the control.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[EditorBrowsable(EditorBrowsableState.Never)]
public BaseControlViewInfo GetViewInfo()
<EditorBrowsable(EditorBrowsableState.Never)>
Public Function GetViewInfo As BaseControlViewInfo
| Type | Description |
|---|---|
| DevExpress.XtraEditors.ViewInfo.BaseControlViewInfo |
A DevExpress.XtraEditors.ViewInfo.BaseControlViewInfo descendant which contains the internal information used to render the control.
|
A ViewInfo object contains all the necessary information to draw the control. Use the GetViewInfo method to get this internal information.
In most cases there is no need to call this method.
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetViewInfo() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-checked-combobox-show-tooltips-for-selected-items/CS/WindowsApplication3/Form1.cs#L126
{
PopupContainerEditViewInfo editInfo = checkedComboBoxEdit1.GetViewInfo() as PopupContainerEditViewInfo;
EditHitInfo hitInfo = editInfo.CalcHitInfo(e.ControlMousePosition);
winforms-checkedit-change-state-by-clicking-checkbox/CS/Q181266/Form1.cs#L24
CheckEdit cEdit = (CheckEdit)sender;
CheckEditViewInfo cInfo = (CheckEditViewInfo)cEdit.GetViewInfo();
Rectangle r = cInfo.CheckInfo.GlyphRect;
winforms-checked-combobox-show-tooltips-for-selected-items/VB/WindowsApplication3/Form1.vb#L113
If e.SelectedControl Is checkedComboBoxEdit1 Then
Dim editInfo As PopupContainerEditViewInfo = TryCast(checkedComboBoxEdit1.GetViewInfo(), PopupContainerEditViewInfo)
Dim hitInfo As EditHitInfo = editInfo.CalcHitInfo(e.ControlMousePosition)
winforms-checkedit-change-state-by-clicking-checkbox/VB/Q181266/Form1.vb#L19
Dim cEdit As CheckEdit = CType(sender, CheckEdit)
Dim cInfo As CheckEditViewInfo = CType(cEdit.GetViewInfo(), CheckEditViewInfo)
Dim r As Rectangle = cInfo.CheckInfo.GlyphRect
See Also