Ejemplo n.º 1
0
		public bool CopyFrom(object obj)
		{
			if (object.ReferenceEquals(this, obj))
				return true;

			var from = obj as ArrangeLayersDocument;
			if (null != from)
			{
				this.NumberOfColumns = from.NumberOfColumns;
				this.NumberOfRows = from.NumberOfRows;
				this.RowSpacing = from.RowSpacing;
				this.ColumnSpacing = from.ColumnSpacing;
				this.LeftMargin = from.LeftMargin;
				this.TopMargin = from.TopMargin;
				this.RightMargin = from.RightMargin;
				this.BottomMargin = from.BottomMargin;
				this.SuperfluousLayersAction = from.SuperfluousLayersAction;
				return true;
			}
			return false;
		}
Ejemplo n.º 2
0
		public ArrangeLayersDocument()
		{
			NumberOfRows = 2;
			NumberOfColumns = 1;
			RowSpacing = 5 / 100.0;
			ColumnSpacing = 5 / 100.0;
			LeftMargin = 15 / 100.0;
			TopMargin = 10 / 100.0;
			RightMargin = 10 / 100.0;
			BottomMargin = 15 / 100.0;
			SuperfluousLayersAction = SuperfluousLayersAction.Untouched;
		}