V
visDev
I want to change the linecolor, lineweight and fill color of visio shapes.
The following function does not work for rrow shapes and the color of other
shape is always changed to grey instead of red. Can someone tell me what's
wrong with this code? I am using visio sdk 2007, visual studio 2008 on vist
home premium (64 bit). I'll appreciate any help. Thanks in advance.
-vis_dev
private void ApplyHighlightStyle(string shapeId)
{
Shape shape =
drawingControl.Document.Pages[1].Shapes[shapeId];
shape.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowFill,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visFillForegnd).
ResultIU
= (double)Microsoft.Office.Interop.Visio.VisDefaultColors.visRed;
shape.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowFill,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visLineColor).ResultIU
= (double)Microsoft.Office.Interop.Visio.VisDefaultColors.visRed;
shape.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowFill,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visLineWeight).
ResultIU
= 19.0;
}
url:http://www.ureader.com/gp/1130-1.aspx
The following function does not work for rrow shapes and the color of other
shape is always changed to grey instead of red. Can someone tell me what's
wrong with this code? I am using visio sdk 2007, visual studio 2008 on vist
home premium (64 bit). I'll appreciate any help. Thanks in advance.
-vis_dev
private void ApplyHighlightStyle(string shapeId)
{
Shape shape =
drawingControl.Document.Pages[1].Shapes[shapeId];
shape.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowFill,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visFillForegnd).
ResultIU
= (double)Microsoft.Office.Interop.Visio.VisDefaultColors.visRed;
shape.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowFill,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visLineColor).ResultIU
= (double)Microsoft.Office.Interop.Visio.VisDefaultColors.visRed;
shape.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowFill,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visLineWeight).
ResultIU
= 19.0;
}
url:http://www.ureader.com/gp/1130-1.aspx