Back to Devexpress

RepositoryItem.CreateViewInfo() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-49c7174f.md

latest5.5 KB
Original Source

RepositoryItem.CreateViewInfo() Method

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

Declaration

csharp
public virtual BaseEditViewInfo CreateViewInfo()
vb
Public Overridable Function CreateViewInfo As BaseEditViewInfo

Returns

TypeDescription
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

csharp
protected int GetCheckBoxWidth() {
    CheckEditViewInfo info = edit.CreateViewInfo() as CheckEditViewInfo;
    int width = 0;

winforms-grid-enable-editing-in-group-row-to-change-cell-values/CS/WindowsApplication3/GroupEditProvider.cs#L232

csharp
if (info.ContainsKey(editorType)) return info[editorType];
info.Add(editorType, col.RealColumnEdit.CreateViewInfo());
return info[editorType];

winforms-tabcontrol-show-checkboxes-in-page-headers/CS/WindowsApplication1/Custom style/DrawEditorHelper.cs#L21

csharp
{
    BaseEditViewInfo info = edit.CreateViewInfo() as BaseEditViewInfo;
    BaseEditPainter painter = edit.CreatePainter();

winforms-grid-display-editors-in-columns-headers/CS/WindowsApplication1/InplaceEditorHelper/DrawEditorHelper.cs#L21

csharp
{
    BaseEditViewInfo info = edit.CreateViewInfo();
    info.EditValue = value;

winforms-grid-multiple-row-selection-web-style-checkboxes/VB/E1271/CheckMarkSelection.vb#L186

vb
Protected Function GetCheckBoxWidth() As Integer
    Dim info As CheckEditViewInfo = TryCast(edit.CreateViewInfo(), CheckEditViewInfo)
    Dim width As Integer = 0

winforms-grid-enable-editing-in-group-row-to-change-cell-values/VB/WindowsApplication3/GroupEditProvider.vb#L222

vb
End If
info.Add(editorType, col.RealColumnEdit.CreateViewInfo())
Return info(editorType)

winforms-tabcontrol-show-checkboxes-in-page-headers/VB/WindowsApplication1/Custom style/DrawEditorHelper.vb#L13

vb
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

vb
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

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace