C# Class Microsoft.VisualStudio.R.Package.Imaging.ImagesProvider

Inheritance: IImagesProvider
ファイルを表示 Open project: Microsoft/RTVS

Public Methods

Method Description
GetFileIcon ( string file ) : System.Windows.Media.ImageSource

Given file name returns icon depending on the file extension

GetIconForImageMoniker ( ImageMoniker imageMoniker ) : System.Windows.Media.ImageSource
GetImage ( string name ) : System.Windows.Media.ImageSource

Returns image source given name of the image moniker such as name from http://glyphlist.azurewebsites.net/knownmonikers

Private Methods

Method Description
CreateExtensionCache ( ) : string>.Dictionary
FindKnownMoniker ( string name ) : ImageMoniker?
GetImageFromResources ( string name ) : System.Windows.Media.ImageSource

Method Details

GetFileIcon() public method

Given file name returns icon depending on the file extension
public GetFileIcon ( string file ) : System.Windows.Media.ImageSource
file string
return System.Windows.Media.ImageSource

GetIconForImageMoniker() public static method

public static GetIconForImageMoniker ( ImageMoniker imageMoniker ) : System.Windows.Media.ImageSource
imageMoniker ImageMoniker
return System.Windows.Media.ImageSource

GetImage() public method

Returns image source given name of the image moniker such as name from http://glyphlist.azurewebsites.net/knownmonikers
public GetImage ( string name ) : System.Windows.Media.ImageSource
name string
return System.Windows.Media.ImageSource