RadEditor for ASP.NET

RadEditor Send comments on this topic.
ImagesFilters Property
See Also  Example
Telerik.WebControls Namespace > RadEditor Class : ImagesFilters Property


Gets or sets the file extension filters that control which files are shown in the Image Manager dialog.   

 

Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)

Syntax

Visual Basic (Declaration) 
Public Property ImagesFilters As String()
Visual Basic (Usage)Copy Code
Dim instance As RadEditor
Dim value() As String
 
instance.ImagesFilters = value
 
value = instance.ImagesFilters
C# 
public string[] ImagesFilters {get; set;}

Return Value

A string array which contains the file extension filters that control which files are shown in the Image Manager dialog.

The default filters are *.gif, *.jpg, *.png, *.bmp.

Example

This example demonstrates how to set the Image Manager dialog to display only *.gif and *.jpg files using ASPX declaration or code-behind.

<rade:radeditor
runat="server"
id="RadEditor1"
imagesfilters="*.gif,*.jpg"
/>

Visual BasicCopy Code
RadEditor1.ImagesFilters = New String(2) {"*.gif", "*.jpg"}
C#Copy Code
RadEditor1.ImagesFilters = New String[2] {"*.gif", "*.jpg"};
    

Remarks

The following wildcard characters are permitted in a filter string:
* - Zero or more characters.
? - Exactly one character.

Note: in the ASPX declaration the filters are comma separated string; in the code behind they are string array.

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also