/// <summary> /// Constructs an instance of <see cref="LayoutEditorColumn" /> class with specified column name. /// </summary> /// <param name="columnName"></param> /// <param name="layoutEditor"></param> public LayoutEditorColumn(string columnName, ILayoutEditor layoutEditor) { if (string.IsNullOrWhiteSpace(columnName)) { throw new ArgumentNullException(nameof(columnName)); } if (layoutEditor == null) { throw new ArgumentNullException(nameof(layoutEditor)); } ColumnName = columnName; LayoutEditor = layoutEditor; }
public LayoutValueChangedEventArgs(ILayoutEditor editor) { this.editor = editor; }
/// <summary> /// Constructs an instance of <see cref="LayoutEditorColumn" /> class with specified layout editor instance. /// NOTE: This column must come before other columns that may be removed. /// </summary> public LayoutEditorColumn(ILayoutEditor layoutEditor) : this(Path.GetRandomFileName(), layoutEditor) { }
/// <summary> /// Edits the layout using the specified layout editor. /// </summary> /// <param name="editor">Layout editor</param> /// <param name="args">Arguments for the editor.</param> internal void Edit(ILayoutEditor editor, string args) { currentColumns = editor.Edit(this, args); }