internal void FromPane(Pane p) { this.SetAllNull(); if (p.HorizontalSplit != null) { this.HorizontalSplit = p.HorizontalSplit.Value; } if (p.VerticalSplit != null) { this.VerticalSplit = p.VerticalSplit.Value; } if (p.TopLeftCell != null) { this.TopLeftCell = p.TopLeftCell.Value; } if (p.ActivePane != null) { this.ActivePane = p.ActivePane.Value; } if (p.State != null) { this.State = p.State.Value; } }
private void SetAllNull() { this.HorizontalSplit = 0; this.VerticalSplit = 0; this.TopLeftCell = null; this.ActivePane = PaneValues.TopLeft; this.State = PaneStateValues.Split; }
private void SetAllNull() { HorizontalSplit = 0; VerticalSplit = 0; TopLeftCell = null; ActivePane = PaneValues.TopLeft; State = PaneStateValues.Split; }
internal SLPane() { this.HorizontalSplit = 0; this.VerticalSplit = 0; this.TopLeftCell = null; this.ActivePane = PaneValues.TopLeft; this.State = PaneStateValues.Split; }
internal static string GetPaneStateValuesAttribute(PaneStateValues psv) { string result = "split"; switch (psv) { case PaneStateValues.Frozen: result = "frozen"; break; case PaneStateValues.FrozenSplit: result = "frozenSplit"; break; case PaneStateValues.Split: result = "split"; break; } return result; }