←Select platform

SvgDocument Property

Summary

SVG document to be displayed in the viewer (single item mode).

Syntax
C#
C++/CLI
public virtual SvgDocument SvgDocument { get; set; } 
public:  
   virtual property SvgDocument^ SvgDocument 
   { 
      SvgDocument^ get() 
      void set(SvgDocument^ value) 
   } 

Property Value

The SVG document to be displayed in the viewer (single item mode). Default value is null.

Remarks

This is a helper property for applications that uses ImageViewer in single item mode. It is a shortcut to SvgDocument of ActiveItem. For more information, refer to Image Viewer in Single Item Mode.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
ImageViewerItem item = _imageViewer.GetLargestVisibleItem(ImageViewerItemPart.Content); 
if (item != null) 
{ 
   var image = item.Image.Clone(); 
   new InvertCommand().Run(image); 
   item.Image = image; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.