public UserDefinedCellNameCellsPair(int shapeid, int row, string name, UserDefinedCellCells cells) { this.ShapeID = shapeid; this.Row = row; this.Name = name; this.Cells = cells; }
public void UserDefinedCells_SetAdditionalProperties() { var page1 = this.GetNewPage(); var s1 = page1.DrawRectangle(0, 0, 2, 2); Assert.AreEqual(0, UserDefinedCellHelper.GetCount(s1)); var prop = new UserDefinedCellCells("foo"); prop.Prompt = "Some Prompt"; UserDefinedCellHelper.Set(s1, "foo", null, "Some prompt"); Assert.AreEqual(1, UserDefinedCellHelper.GetCount(s1)); page1.Delete(0); }
public void Set(VisioScripting.Models.TargetShapes targets, UserDefinedCellCells userdefinedcell) { this._client.Application.AssertApplicationAvailable(); this._client.Document.AssertDocumentAvailable(); targets = targets.ResolveShapes(this._client); if (targets.Shapes.Count < 1) { return; } using (var undoscope = this._client.Application.NewUndoScope("Set User-Defined Cell")) { foreach (var shape in targets.Shapes) { UserDefinedCellHelper.Set(shape, userdefinedcell.Name, userdefinedcell.Value.Formula.Value, userdefinedcell.Prompt.Formula.Value); } } }
public UserDefinedCellKeyValuePair(string name, UserDefinedCellCells cells) { this.Name = name; this.Cells = cells; }