The fill symbol used by the CommandsEnvironment singleton.
[Visual Basic .NET] Public Property FillSymbol As IFillSymbol
[C#] public IFillSymbol FillSymbol {get; set;}
[C++]
HRESULT get_FillSymbol(
IFillSymbol** ppFillSymbol
);
[C++]
HRESULT put_FillSymbol(
IFillSymbol* ppFillSymbol
);
[C++]Parameters
ppFillSymbol [out, retval]ppFillSymbol is a parameter of type IFillSymbol
ppFillSymbol [in]ppFillSymbol is a parameter of type IFillSymbol
Product Availability
Available with ArcGIS Engine.
Description
The FillSymbol used by the ControlsNewCircleTool, ControlsNewEllipseTool, ControlsNewPolygonTool, ControlsNewRectangleTool and the IHookActions methods. By default the IFillSymbol::Color is yellow and the IFillSymbol::Outline is black with a width of 1.
The IFillSymbol::Color and IFillSymbol::Outline return clones, so to change the default color and outline set an IColor object into IFillSymbol::Color and an ILineSymbol into IFillSymbol::Outline.
[C#]
//Get the IGraphicProperties interfaceIGraphicProperties graphicProperties =newCommandsEnvironmentClass();//Get the IRgbColor interfaceIRgbColor color =newRgbColorClass();//Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256))color.RGB = 255;//Get the ISimpleLineSymbol interfaceISimpleLineSymbol outline = (ISimpleLineSymbol) graphicProperties.FillSymbol.Outline;//Set the color and widthoutline.Color = color; outline.Width = 3;//Set the FillSymbol's color and outlinegraphicProperties.FillSymbol.Color = color; graphicProperties.FillSymbol.Outline = outline;
[Visual Basic .NET]
'Get the IGraphicProperties interfaceDimgraphicPropertiesAsIGraphicProperties =NewCommandsEnvironmentClass'Get the IRgbColor interfaceDimcolorAsIRgbColor =NewRgbColorClass'Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256))color.RGB = 255'Get the ISimpleLineSymbol interfaceDimoutlineAsISimpleLineSymbol = graphicProperties.FillSymbol.Outline'Set the color and widthoutline.Color = color outline.Width = 3'Set the FillSymbol's color and outlinegraphicProperties.FillSymbol.Color = color graphicProperties.FillSymbol.Outline = outline