←Select platform

DropShapes Property

Summary
Gets or sets a value that indicates whether any element that is not text or image in the SVG should be dropped during load.
Syntax
C#
Objective-C
C++
Java
public bool DropShapes { get; set; } 
@property (nonatomic, assign) BOOL dropShapes; 
public boolean getDropShapes() 
public void setDropShapes(boolean value) 
public: 
property bool DropShapes { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

Value Description
true To drop non-image and non-text elements of the SVG document during load.
false To keep non-image and non-text elements of the SVG document during load, if any. false is the default value.
Remarks

Creating an SVG document with text only is desired in certain scenarios. For example, if the application loads SVG document to parse the text values and store them in an external database for text search purposes, then setting the value of DropImages and DropShapes to true while leaving DropText as false will speed up the loading operation and elements not required will be discarded. This is especially useful if the original SVG document contains image elements which may use a lot of memory and disk space.

Example

For an example, refer to DropImages.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.