You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: telerik-presentation-framework/vector-images-support.md
+20
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,8 @@ Another way is to find the **SvgImage** property in the drop down list of the Vi
134
134
135
135

136
136
137
+
### Useful properties and methods
138
+
137
139
#### Sizing SVG image
138
140
139
141
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
149
151
-**GetRasterImage()** - Returns a raster bitmap with the default width and height for the loaded SVG document.
150
152
-**GetRasterImage(Size size)** - Returns a raster bitmap with a given width and height for the loaded SVG document.
151
153
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
+
RadSvgImagesvg=this.radButton1.SvgImage;
160
+
svg.ClearCache();
161
+
162
+
````
163
+
````VB.NET
164
+
RadSvgImagesvg=Me.RadButton1.SvgImage
165
+
svg.ClearCache()
166
+
167
+
````
168
+
169
+
{{endregion}}
170
+
171
+
152
172
>note Since R2 2020 **ControlDefault** theme comes with SVG images by default.
0 commit comments