Download Now
Forums

    Reference TSvgDocument

    Declared in Codebot.Render.SVG.pas on line 240

    TSvgDocument is an SVG document read from text or from a file
      TSvgDocument = class(TSvgCollection)
      public
        { Read the document from SVG text }
        procedure ParseText(const Xml: string; StyleExClass: TSvgStyleExClass = nil);
        { Read the document from an SVG file }
        procedure ParseFile(const FileName: string; StyleExClass: TSvgStyleExClass = nil);
        property NodeCount: Integer read GetCount;
        property Node[Index: Integer]: TSvgNode read GetNode;
        { The view box of the document }
        property ViewBox: TRectF read FViewBox;
      end;

    See also

    TRectF in Codebot.Graphics.Types.pas