Answer the question
In order to leave comments, you need to log in
How to clone a shape in Ingeo print layout?
The print layout has an IInPictureGridFigure. I want to programmatically create another grid with the same style as the one already in the layout. Ideally, of course, I would generally clone the existing one, but so far I have not found such an opportunity. So far I'm doing this:
Code:
var newTableFigure = MyLayoutWindow.Figures.Add(TInPictureFigureType.inftMap) as IInPictureGridFigure;
newTableFigure .Bottom = existTable.Bottom;
newTableFigure .Width = existTable.Bottom;
newTableFigure .GridFormat = existTable.GridFormat;
newTableFigure .ColFormat = existTable.ColFormat;
newTableFigure .RowFormat = existTable.RowFormat;
orgTableFigure.GetFormat(j, -1).Size[TInGridFormatKind.ingfFont] = organizationTable.GetFormat(-1, 0).Size[TInGridFormatKind.ingfColWidth];
Destructive by itself (Exception from HRESULT: 0x8000FFFF (E_UNEZPECTED))
newTableFigure .GetFormat(j, -1).Size[TInGridFormatKind.ingfColWidth] = 250; //existFigure .GetFormat(j, -1).Size[TInGridFormatKind.ingfColWidth];
newTableFigure .GetFormat(j, -1).Update();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question