本文整理汇总了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());
}
示例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();
}
示例3: Register
public void Register()
{
AttributeTableBuilder tableBuilder = new AttributeTableBuilder();
tableBuilder.AddCustomAttributes(typeof(PieChart), new FeatureAttribute(typeof(PieChartDesignModeValueProvider)));
MetadataStore.AddAttributeTable(tableBuilder.CreateTable());
}
示例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();
}
示例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;
}
示例6: VectorMetadata
public VectorMetadata()
{
var builder = new AttributeTableBuilder();
builder.AddCustomAttributes(typeof (Node),
"Position",
PropertyValueEditor.CreateEditorAttribute(typeof (VectorEditor)),
new AlternateContentPropertyAttribute()
);
AttributeTable = builder.CreateTable();
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}