windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-49c7174f.md
This member supports the editors library’s internal infrastructure and is not intended to be used in your applications.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public virtual BaseEditViewInfo CreateViewInfo()
Public Overridable Function CreateViewInfo As BaseEditViewInfo
| Type | Description |
|---|---|
| DevExpress.XtraEditors.ViewInfo.BaseEditViewInfo |
A DevExpress.XtraEditors.ViewInfo.BaseEditViewInfo descendant containing the editor’s view information.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateViewInfo() 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-grid-multiple-row-selection-web-style-checkboxes/CS/E1271/CheckMarkSelection.cs#L159
protected int GetCheckBoxWidth() {
CheckEditViewInfo info = edit.CreateViewInfo() as CheckEditViewInfo;
int width = 0;
if (info.ContainsKey(editorType)) return info[editorType];
info.Add(editorType, col.RealColumnEdit.CreateViewInfo());
return info[editorType];
{
BaseEditViewInfo info = edit.CreateViewInfo() as BaseEditViewInfo;
BaseEditPainter painter = edit.CreatePainter();
{
BaseEditViewInfo info = edit.CreateViewInfo();
info.EditValue = value;
winforms-grid-multiple-row-selection-web-style-checkboxes/VB/E1271/CheckMarkSelection.vb#L186
Protected Function GetCheckBoxWidth() As Integer
Dim info As CheckEditViewInfo = TryCast(edit.CreateViewInfo(), CheckEditViewInfo)
Dim width As Integer = 0
End If
info.Add(editorType, col.RealColumnEdit.CreateViewInfo())
Return info(editorType)
Public Sub DrawEdit(ByVal g As Graphics, ByVal edit As RepositoryItem, ByVal r As Rectangle, ByVal value As Object)
Dim info As BaseEditViewInfo = TryCast(edit.CreateViewInfo(), BaseEditViewInfo)
Dim painter As BaseEditPainter = edit.CreatePainter()
winforms-grid-display-editors-in-columns-headers/VB/InplaceEditorHelper/DrawEditorHelper.vb#L21
Public Shared Sub DrawEdit(ByVal g As Graphics, ByVal edit As RepositoryItem, ByVal r As Rectangle, ByVal value As Object)
Dim info As BaseEditViewInfo = edit.CreateViewInfo()
info.EditValue = value
See Also