Skip to content

Commit 7d6e772

Browse files
committed
Add ClearCache method in svg image docs
1 parent efe349d commit 7d6e772

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

telerik-presentation-framework/vector-images-support.md

+20
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ Another way is to find the **SvgImage** property in the drop down list of the Vi
134134

135135
![smart-tag](images/property-window.png)
136136

137+
### Useful properties and methods
138+
137139
#### Sizing SVG image
138140

139141
You can easily change the default size of the SVG image by setting the following properties:
@@ -149,4 +151,22 @@ You can easily change the default size of the SVG image by setting the following
149151
- **GetRasterImage()** - Returns a raster bitmap with the default width and height for the loaded SVG document.
150152
- **GetRasterImage(Size size)** - Returns a raster bitmap with a given width and height for the loaded SVG document.
151153

154+
#### ClearCache method
155+
156+
**RadSvgImage** has a built-in caching mechanism that caches the displayed raster image. If you need to clear it you can call the **ClearCache** method that clears all cached raster images.
157+
158+
````C#
159+
RadSvgImage svg = this.radButton1.SvgImage;
160+
svg.ClearCache();
161+
162+
````
163+
````VB.NET
164+
RadSvgImage svg = Me.RadButton1.SvgImage
165+
svg.ClearCache()
166+
167+
````
168+
169+
{{endregion}}
170+
171+
152172
>note Since R2 2020 **ControlDefault** theme comes with SVG images by default.

0 commit comments

Comments
 (0)