Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
public enum TPosisioning
{
    Static = 1,
    Absolute = 2,
    Relative = 3,
    Fixed = 4,
}


MIDL
public class TDrawingNode
{
    public string Text;
    public string Id;
    public int X, Y, W, H, ZIndex;
    public bool Movable, Transferable;
    public bool Resizable;
    public TPosisioning Posisioning;
    public List<TDrawingNode> SubNodes;
}



I have a c# class in which some elements are stored and each element has sub nodes, x,y,w,h, and Positioning.
I want to draw them by SVG Elements.
BTW Browsers have an algorithm to draw HTML Elements,
I need that algorithm which calculate nodes's x,y for drawing.
Where to find the best solution or library for that?
Any suggestion would be appreciated.

Thanks in advance.
Jamal.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900