How Can I Create a array of Selecton Class & Group all them one byone

S

shailendrasingh823

Hi I want to use a array of selection,because how many will group
will be there I dont know,I want to use that array of selection make
as group one by one .

But I am getting Exception--Requested Operation is presently disabled.

the code what I am using is like that.

string[] AreaArray=null;
Visio.Selection[] SelectionArray=null;
window.SelectAll();
window.DeselectAll();

for loop
{
SelectionArray = new Microsoft.Office.Interop.Visio.Selection[1];
SelectionArray[index] = window.Selection;

SelectionArray[index].Select((Visio.Shape)ArrayofDropShape.GetValue(index),
2);
}

Visio.Shape[] ArrayofGroupshape = new
Visio.Shape[SelectionArray.Length];
for loop
{
ArrayofGroupshape = SelectionArray.Group();////This statement
is giving me exception;
shapeText = ArrayofGroupshape.Characters;
shapeText.Begin = shapeText.End;
shapeText.Text = AreaArray;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top