Re: Change the Shape's Color
- From: "David Parker" <davidp@xxxxxxxxxxx>
- Date: Tue, 7 Oct 2008 20:43:46 +0100
Is it shape.get_Cells() in C# ?
"Fazoule" <le_maitre@xxxxxxxxxx> wrote in message news:48eb8dbc$1_4@xxxxxxxxxxxxxxxxxx
Yep, i have already checked this site, but it don't work..
i ahve seen this example
Colour Test1: This subroutine will display and change the line colour and the fill foreground colour of all the shapes on the current page.
Public Sub Colour_Test1()
Dim objshape As Visio.Shape
Dim i1 As Integer
For i1 = 1 To Visio.ActivePage.Shapes.Count
Set objshape = Visio.ActivePage.Shapes(i1)
Debug.Print objshape.Name; " "; objshape.Cells("linecolor")
objshape.Cells("LineColor") = 5
Debug.Print objshape.Name; " "; objshape.Cells("linecolor")
Debug.Print objshape.Name; " "; objshape.Cells("Fillforegnd")
objshape.Cells("Fillforegnd") = 4
Debug.Print objshape.Name; " "; objshape.Cells("Fillforegnd")
Next
End Sub
and in C# the shape.Cells doesn't exist..
i think it's a stuf like shape.get_cell(...) ??
but i don't if it's exactly this..
"Paul Herber" <SubstituteMyFirstNameHere@xxxxxxxxxxx> a écrit dans le message de news: cn2ne4ddbfruighpkjplorild7dv3jibob@xxxxxxxxxxxxxxxxxxxxOn Tue, 7 Oct 2008 18:05:47 +0200, "Fazoule" <le_maitre@xxxxxxxxxx>
wrote:
Hi,
I would to know how i can change the shape's Color with C#?
Have a look at John Marshall's VBA page at
http://visio.mvps.org/VBA.htm
The object member names etc are all very similar.
--
Regards, Paul Herber, Sandrila Ltd.
http://www.electronics-packages.sandrila.co.uk/
--
David Parker
Microsoft MVP (Visio)
http://bvisual.spaces.live.com
http://www.visualizinginformation.com
.
- Follow-Ups:
- Re: Change the Shape's Color
- From: Ferro Francesco
- Re: Change the Shape's Color
- References:
- Change the Shape's Color
- From: Fazoule
- Re: Change the Shape's Color
- From: Paul Herber
- Re: Change the Shape's Color
- From: Fazoule
- Change the Shape's Color
- Prev by Date: RE: Resize on drop
- Next by Date: Re: Connectors to center of shapes but arrowheads at shape perimeter
- Previous by thread: Re: Change the Shape's Color
- Next by thread: Re: Change the Shape's Color
- Index(es):
Relevant Pages
|