示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildingBlockDefinition"/> class.
 /// </summary>
 /// <param name="name">The name of the building block.</param>
 /// <param name="startPosition">The start position of the building block.</param>
 /// <param name="endPosition">The end position of the building block.</param>
 public BuildingBlockDefinition(BuildingBlockName name, int startPosition, int endPosition)
 {
     this.Name          = name;
     this.StartPosition = startPosition;
     this.EndPosition   = endPosition;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildingBlockInfo"/> class.
 /// </summary>
 /// <param name="name">The name of the building block.</param>
 /// <param name="contentControlTags">The tags of the content controls associated with the <see cref="BuildingBlock"/>.</param>
 /// <param name="previewImage">The preview image for the <see cref="BuildingBlock"/>.</param>
 public BuildingBlockInfo(BuildingBlockName name, IEnumerable <string> contentControlTags, Image previewImage)
 {
     this.Name = name;
     this.ContentControlTags = contentControlTags;
     this.PreviewImage       = previewImage;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildingBlockDefinition"/> class.
 /// </summary>
 /// <param name="name">The name of the building block.</param>
 /// <param name="startPosition">The start position of the building block.</param>
 /// <param name="endPosition">The end position of the building block.</param>
 public BuildingBlockDefinition(string name, int startPosition, int endPosition)
 {
     this.Name          = BuildingBlockName.Parse(name);
     this.StartPosition = startPosition;
     this.EndPosition   = endPosition;
 }