示例#1
0
        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);
        }
示例#3
0
        public static RepositoryItemFontEdit CreateTreeFontEdit(this TreeListColumn treeColumn)
        {
            RepositoryItemFontEdit repositoryItem = new RepositoryItemFontEdit
            {
                AutoHeight = false
            };

            treeColumn.TreeList.RepositoryItems.Add(repositoryItem);
            treeColumn.ColumnEdit = repositoryItem;
            return(repositoryItem);
        }
示例#4
0
        /// <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);
        }