public RepositoryItemFontEdit CreateRepositoryFontEdit() { RepositoryItemFontEdit ri = new RepositoryItemFontEdit(); ri.AutoHeight = false; return(ri); }
protected override RepositoryItem OnCreateRepositoryItem(Type objectType) { var edit = new RepositoryItemFontEdit(); WinFormPublic.AddClearButton(edit); return(edit); }
public static RepositoryItemFontEdit CreateTreeFontEdit(this TreeListColumn treeColumn) { RepositoryItemFontEdit repositoryItem = new RepositoryItemFontEdit { AutoHeight = false }; treeColumn.TreeList.RepositoryItems.Add(repositoryItem); treeColumn.ColumnEdit = repositoryItem; return(repositoryItem); }
/// <summary> /// 创建GridView的列编辑为FontEdit /// </summary> /// <param name="gridColumn">GridColumn列对象</param> /// <returns></returns> public static RepositoryItemFontEdit CreateFontEdit(this GridColumn gridColumn) { RepositoryItemFontEdit repositoryItem = new RepositoryItemFontEdit { AutoHeight = false }; gridColumn.View.GridControl.RepositoryItems.Add(repositoryItem); gridColumn.ColumnEdit = repositoryItem; return(repositoryItem); }