public static void Add(this TableLayoutStyleCollection collection, TableLayoutStyle style, int count) { for (int i = 0; i < count; i++) { collection.Add(style); } }
/// <summary> /// Initializes a new instance of the <see cref="TableDescriptor"/> /// class. /// </summary> /// <param name="guid"> /// The unique identifier for this table. This MAY NOT be /// the default (empty) <see cref="Guid"/>. /// </param> /// <param name="name"> /// The name of this table. /// </param> /// <param name="description"> /// A user friendly description of this table. /// </param> /// <param name="category"> /// The category into which this table belongs. This parameter /// may be null, at which point the table is assumed to be in /// the <see cref="TableAttribute.DefaultCategory"/> category. /// </param> /// <param name="isMetadataTable"> /// Whether the table is a metadata table. /// </param> /// <param name="defaultLayout"> /// The default layout style for the table. /// </param> /// <param name="requiredDataCookers"> /// Identifiers for data cookers required to instantiate this table. /// </param> /// <param name="requiredDataProcessors"> /// Identifiers for data processors required to instantiate this table. /// </param> /// <exception cref="System.ArgumentException"> /// <paramref name="guid"/> is whitespace. /// - or - /// <paramref name="guid"/> parsed to a value /// equal to <c>default(Guid)</c>. /// - or - /// <paramref name="name"/> is whitespace. /// - or - /// <paramref name="description"/> is whitespace. /// - or - /// <paramref name="category"/> is whitespace. /// </exception> /// <exception cref="System.ArgumentNullException"> /// <paramref name="guid"/> is <c>null</c>. /// - or - /// <paramref name="name"/> is <c>null</c>. /// - or - /// <paramref name="description"/> is <c>null</c>. /// - or - /// <paramref name="category"/> is <c>null</c>. /// </exception> public TableDescriptor( Guid guid, string name, string description, string category = DefaultCategory, bool isMetadataTable = false, TableLayoutStyle defaultLayout = TableLayoutStyle.GraphAndTable, IEnumerable <DataCookerPath> requiredDataCookers = null, IEnumerable <DataProcessorId> requiredDataProcessors = null) { Guard.NotDefault(guid, nameof(guid)); Guard.NotNullOrWhiteSpace(name, nameof(name)); Guard.NotNullOrWhiteSpace(description, nameof(description)); Guard.NotNullOrWhiteSpace(category, nameof(category)); this.Guid = guid; this.Name = name; this.Description = description; this.Category = category; this.DefaultLayout = defaultLayout; this.IsMetadataTable = isMetadataTable; this.ExtendedData = new Dictionary <string, object>(); this.dataCookers = requiredDataCookers != null ? new HashSet <DataCookerPath>(requiredDataCookers) : new HashSet <DataCookerPath>(); this.dataProcessors = requiredDataProcessors != null ? new HashSet <DataProcessorId>(requiredDataProcessors) : new HashSet <DataProcessorId>(); }
internal TableLayoutPanelResizeGlyph(Rectangle controlBounds, TableLayoutStyle style, Cursor hitTestCursor, System.Windows.Forms.Design.Behavior.Behavior behavior) : base(behavior) { this.bounds = controlBounds; this.hitTestCursor = hitTestCursor; this.style = style; if (style is ColumnStyle) { this.type = TableLayoutResizeType.Column; } else { this.type = TableLayoutResizeType.Row; } }
// Methods public int Add(TableLayoutStyle style) { }
public int Add(TableLayoutStyle style) { }
private static Microsoft.Performance.SDK.Processing.TableLayoutStyle ConvertToSdk(this TableLayoutStyle dtoEnum) { switch (dtoEnum) { case TableLayoutStyle.None: return(Microsoft.Performance.SDK.Processing.TableLayoutStyle.None); case TableLayoutStyle.Graph: return(Microsoft.Performance.SDK.Processing.TableLayoutStyle.Graph); case TableLayoutStyle.Table: return(Microsoft.Performance.SDK.Processing.TableLayoutStyle.Table); case TableLayoutStyle.GraphAndTable: return(Microsoft.Performance.SDK.Processing.TableLayoutStyle.GraphAndTable); default: //Looks like an unsupported version of the DTO, we shouldn't have got here throw new InvalidOperationException(); } }