當前位置: 首頁>>代碼示例>>C#>>正文


C# AttributeTableBuilder.CreateTable方法代碼示例

本文整理匯總了C#中AttributeTableBuilder.CreateTable方法的典型用法代碼示例。如果您正苦於以下問題:C# AttributeTableBuilder.CreateTable方法的具體用法?C# AttributeTableBuilder.CreateTable怎麽用?C# AttributeTableBuilder.CreateTable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在AttributeTableBuilder的用法示例。


在下文中一共展示了AttributeTableBuilder.CreateTable方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AddMonthViewDesigners

        private void AddMonthViewDesigners()
        {
            var builder = new AttributeTableBuilder();
            builder.AddCustomAttributes(typeof (FXMonthView), new FeatureAttribute(typeof (MonthViewDesignAdorner)));

            MetadataStore.AddAttributeTable(builder.CreateTable());
        }
開發者ID:Jalalx,項目名稱:FarsiLibrary,代碼行數:7,代碼來源:VisualStudioMetadata.cs

示例2: BuildAttributeTable

        /// <summary>
        /// Builds the design time attribute table.
        /// </summary>
        /// <returns>Custom attribute table.</returns>
        private static AttributeTable BuildAttributeTable()
        {
            AttributeTableBuilder builder = new AttributeTableBuilder();

            AddAttributes(builder);

            return builder.CreateTable();
        }
開發者ID:harunpehlivan,項目名稱:LiveSDK-for-Windows,代碼行數:12,代碼來源:MetadataBase.cs

示例3: Register

		public void Register()
		{
			AttributeTableBuilder tableBuilder = new AttributeTableBuilder();

			tableBuilder.AddCustomAttributes(typeof(PieChart), new FeatureAttribute(typeof(PieChartDesignModeValueProvider)));

			MetadataStore.AddAttributeTable(tableBuilder.CreateTable());
		}
開發者ID:XiBeichuan,項目名稱:hydronumerics,代碼行數:8,代碼來源:Metadata.cs

示例4: BuildAttributeTable

        /// <summary>
        /// Build design time metadata attribute table.
        /// </summary>
        /// <returns>Custom attribute table.</returns>
        protected virtual AttributeTable BuildAttributeTable()
        {
            AttributeTableBuilder builder = new AttributeTableBuilder();

            AddDescriptions(builder);
            AddAttributes(builder);
            AddTables(builder);

            return builder.CreateTable();
        }
開發者ID:modulexcite,項目名稱:SilverlightToolkit,代碼行數:14,代碼來源:MetadataBase.cs

示例5: BuildAttributeTable

        /// <summary>
		/// Build design time metadata attribute table.
		/// </summary>
		/// <returns>Custom attribute table.</returns>
		protected virtual AttributeTable BuildAttributeTable()
		{
			AttributeTableBuilder builder = new AttributeTableBuilder();

            AddDescriptions(builder);
            AddAttributes(builder);
            AddTables(builder, this);
            masterMetadataTable = builder.CreateTable();
			return masterMetadataTable;
		}
開發者ID:sk8tz,項目名稱:callisto,代碼行數:14,代碼來源:MetadataRegistrationBase.cs

示例6: VectorMetadata

        public VectorMetadata()
        {
            var builder = new AttributeTableBuilder();

            builder.AddCustomAttributes(typeof (Node),
                                        "Position",
                                        PropertyValueEditor.CreateEditorAttribute(typeof (VectorEditor)),
                                        new AlternateContentPropertyAttribute()
                                        );

            AttributeTable = builder.CreateTable();
        }
開發者ID:Conn,項目名稱:Balder,代碼行數:12,代碼來源:VectorMetadata.cs

示例7: AddToolboxBrowsableAttributes

        private void AddToolboxBrowsableAttributes()
        {
            AttributeTableBuilder builder = new AttributeTableBuilder();

            builder.AddCustomAttributes(typeof(DataGridCell), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridCellsPanel), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridCellsPresenter), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridColumnHeader), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridColumnHeadersPresenter), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridDetailsPresenter), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridHeaderBorder), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridRow), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridRowHeader), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DataGridRowsPresenter), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(SelectiveScrollingGrid), ToolboxBrowsableAttribute.No);
            
            builder.AddCustomAttributes(typeof(CalendarButton), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(CalendarDayButton), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(CalendarItem), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(DatePickerTextBox), ToolboxBrowsableAttribute.No);

            MetadataStore.AddAttributeTable(builder.CreateTable());
        }
開發者ID:jrwren,項目名稱:wpftoolkit,代碼行數:23,代碼來源:VisualStudioMetadata.cs

示例8: RegisterMetadata

		void RegisterMetadata()
		{
			AttributeTableBuilder builder = new AttributeTableBuilder();
			
			// Register Designers.
			builder.AddCustomAttributes(typeof(Sequence),
			                            new DesignerAttribute(typeof(SequenceDesigner)));
			
			// Apply the metadata
			MetadataStore.AddAttributeTable(builder.CreateTable());
		}
開發者ID:2594636985,項目名稱:SharpDevelop,代碼行數:11,代碼來源:WorkflowDesignerViewContent.cs

示例9: AddToolboxBrowsableAttributes

        private void AddToolboxBrowsableAttributes()
        {
            var builder = new AttributeTableBuilder();

            builder.AddCustomAttributes(typeof(FXMonthViewButton),            ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewContainer),         ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewHeader),            ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewItem),              ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewWeekDayHeaderCell), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXPopup),                      ToolboxBrowsableAttribute.No);

            MetadataStore.AddAttributeTable(builder.CreateTable());
        }
開發者ID:Jalalx,項目名稱:FarsiLibrary,代碼行數:13,代碼來源:VisualStudioMetadata.cs

示例10: Register

 /// <summary>
 /// Return the attribute table that is applied to design time.
 /// </summary>
 public void Register()
 {
     AttributeTableBuilder builder = new AttributeTableBuilder();
     LayoutMetadata.AddAttributes(builder);
     MetadataStore.AddAttributeTable(builder.CreateTable());
 }
開發者ID:ComponentFactory,項目名稱:Quicksilver,代碼行數:9,代碼來源:MetadataRegistration35.cs


注:本文中的AttributeTableBuilder.CreateTable方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。