SVG document associated with this item.
public SvgDocument SvgDocument { get; set; } Public Property SvgDocument() As SvgDocumentGetSet
public:property SvgDocument^ SvgDocument{SvgDocument^ get()void set(SvgDocument^ value)}
The SVG document object associated with this item. Default value is null.
The item can have either a value in Image or SvgDocument but not both. Setting one value will automatically delete the other.
When setting SvgDocument to a new value, the previous document will be automatically disposed if the value of AutoDisposeImages is set to true. Note that setting the same SvgDocument object into multiple items in the same viewer is supported, and the viewer will only dispose the document if it is the last reference found in all the items. When setting the same SvgDocument into items from separate viewers, the ownership and disposing of the SvgDocument objects must be handled by the user.
Changing the value of this property will fire the ItemChanged event with ImageViewerItemChangedReason will automatically be update as well with the DPI of the document.
The viewer will automatically optimize the SVG document for rendering if the value of AutoRenderOptimizeSvgDocuments is true when a new value is set into this property.
SvgDocument property of ImageViewer will update this member if this is the active item when the viewer is used in single item mode.
For more information, refer to Image Viewer Items.
using Leadtools;using Leadtools.Controls;using Leadtools.Codecs;using Leadtools.Drawing;using LeadtoolsExamples.Common;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;ImageViewerItem item = _imageViewer.GetLargestVisibleItem(ImageViewerItemPart.Content);if (item != null){var image = item.Image.Clone();new InvertCommand().Run(image);item.Image = image;}
Imports LeadtoolsImports Leadtools.ControlsImports Leadtools.CodecsImports Leadtools.DrawingImports Leadtools.ImageProcessingImports Leadtools.ImageProcessing.ColorImports LeadtoolsControlsExamples.LeadtoolsExamples.CommonDim item As ImageViewerItem = _imageViewer.GetLargestVisibleItem(ImageViewerItemPart.Content)If Not item Is Nothing ThenDim image As RasterImage = item.Image.Clone()CType(New InvertCommand(), InvertCommand).Run(image)item.Image = imageEnd If
|
Products |
Support |
Feedback: SvgDocument Property (ImageViewerItem) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.