Back to Devexpress

RepositoryItem.CreatePainter() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-cbb9d8aa.md

latest4.4 KB
Original Source

RepositoryItem.CreatePainter() Method

This member supports the editor 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 BaseEditPainter CreatePainter()
vb
Public Overridable Function CreatePainter As BaseEditPainter

Returns

TypeDescription
DevExpress.XtraEditors.Drawing.BaseEditPainter

A DevExpress.XtraEditors.Drawing.BaseEditPainter descendant used to paint the editor.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreatePainter() 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-enable-editing-in-group-row-to-change-cell-values/CS/WindowsApplication3/GroupEditProvider.cs#L224

csharp
if (painters.ContainsKey(editorType)) return painters[editorType];
painters.Add(editorType, col.RealColumnEdit.CreatePainter());
return painters[editorType];

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

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

winforms-grid-multiple-row-selection-web-style-checkboxes/CS/E1271/CheckMarkSelection.cs#L175

csharp
info = edit.CreateViewInfo() as CheckEditViewInfo;
painter = edit.CreatePainter() as CheckEditPainter;
info.EditValue = Checked;

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

vb
End If
painters.Add(editorType, col.RealColumnEdit.CreatePainter())
Return painters(editorType)

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

vb
Dim info As BaseEditViewInfo = TryCast(edit.CreateViewInfo(), BaseEditViewInfo)
Dim painter As BaseEditPainter = edit.CreatePainter()
info.EditValue = value

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

vb
info = TryCast(edit.CreateViewInfo(), CheckEditViewInfo)
painter = TryCast(edit.CreatePainter(), CheckEditPainter)
info.EditValue = Checked

See Also

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace