Home > Services > DXCore Services – Resources

DXCore Services – Resources

February 19th, 2011

Resources service of DXCore contains shared resource images and drawing methods for use in plug-ins.

Methods of this service:

Name

Description

DrawSourceModelImage Draws the image at the specified index onto a Graphics location. Clipping rects are checked and the image is only drawn if the center of the graphic is inside the clipping rect/region.
GetSourceModelHighligtImage Returns the highlighted source model image with the given index.
GetSourceModelImage Returns the source model image with the given index.
HighlightSourceModelImage Highlights the image at the specified index onto a Graphics location. Clipping rects are checked and the image is only drawn if the center of the graphic is inside the clipping rect/region.
UserColorImages Forces plug-ins that draw images to use color source model images.
UserMonochromeImages Forces plug-ins that draw images to use monochrome (blue and white) source model images.

Properties:

Name

Description

SourceModelHighlightImages Returns an ImageList of shared images for representing highlighted elements (e.g., bright images to be painted on a dark background) of the source model.
SourceModelImages Returns an ImageList of shared images for representing elements of the source model.
VisualStudio2008Icon Returns the Visual Studio 2008 icon (16×16).
VisualStudio2010Icon Returns the Visual Studio 2010 icon (16×16).
VisualStudioIcon Returns the Visual Studio icon – 2008 or 2010 – depending on the current Visual Studio version loaded.
—–
Products: DXCore
Versions: 10.2 and up
VS IDEs: any
Updated: Feb/19/2011
ID: D064

Similar Posts:

  1. Robert Leahey
    May 12th, 2011 at 15:34 | #1

    Hi Alex,
    Might there be a list of constants for the image indexes in the SourceModelImages lists? I made a plug-in that displayed all the images with their indexes, but I’d prefer to access them using a list of indexes provided by CodeRush if there is one.

  2. May 13th, 2011 at 02:09 | #2

    @Robert Leahey
    There’s the DevExpress.CodeRush.StructuralParser.ImageIndex class inside the DevExpress.DXCore.Parser assembly.