Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic get the sharp from a ShapeLibrary from id? (Read 1004 times)
grayhound
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Nov 8th, 2006
get the sharp from a ShapeLibrary from id?
May 11th, 2007 at 6:19am
Print Post  
Code
Select All
ShapeLibrary shapes = ShapeLibrary.LoadFrom(Application.StartupPath +
@"\GraphicElements\SharpLibrary.shl");
ShapeTemplate st = Shapes.Shapes[0];
box.Shape = ShapeTemplate.FromId("Pool");
 



I can get the sharp from this method, but it seem not a   best one.

how to get a sharp from shapeLibrary from id?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: get the sharp from a ShapeLibrary from id?
Reply #1 - May 11th, 2007 at 9:41am
Print Post  
FromId is the only method I could find to get a shape by its id. Another possibility is to iterate over the ShapeLibrary.Shapes collection and compare their identifiers with the one you are looking for.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint