Class ExtensionMethods
Extension method clas
Inheritance
Inherited Members
Namespace: OSGeo.MapGuide.ObjectModels.LayerDefinition
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public static class ExtensionMethods
Methods
| Improve this Doc View SourceAddOverride(IParameterOverrideCollection, String, String, String)
Adds a parameter override
Declaration
public static IParameterOverride AddOverride(this IParameterOverrideCollection overrides, string symbolName, string paramName, string paramValue)
Parameters
Type | Name | Description |
---|---|---|
IParameterOverrideCollection | overrides | |
System.String | symbolName | |
System.String | paramName | |
System.String | paramValue |
Returns
Type | Description |
---|---|
IParameterOverride | The added parameter override |
Apply(IFontSymbol, FontInfo)
Applies properties (name, italic, bold, underline) from the characteristics of the specified font
Declaration
public static void Apply(this IFontSymbol sym, FontInfo f)
Parameters
Type | Name | Description |
---|---|---|
IFontSymbol | sym | |
FontInfo | f |
Apply(ITextSymbol, FontInfo)
Applies properties (name, italic, bold, underline) from the characteristics of the specified font
Declaration
public static void Apply(this ITextSymbol sym, FontInfo f)
Parameters
Type | Name | Description |
---|---|---|
ITextSymbol | sym | |
FontInfo | f |
DefineParameter(ISimpleSymbolDefinition, String, String, String, String, String)
Defines a parameter for a simple symbol definition
Declaration
public static IParameter DefineParameter(this ISimpleSymbolDefinition simpleSym, string identifier, string defaultValue, string displayName, string description, string dataType)
Parameters
Type | Name | Description |
---|---|---|
ISimpleSymbolDefinition | simpleSym | |
System.String | identifier | |
System.String | defaultValue | |
System.String | displayName | |
System.String | description | |
System.String | dataType |
Returns
Type | Description |
---|---|
IParameter | The defined parameter |
GetScaleRangeCount(IVectorLayerDefinition)
Gets the number of scale ranges in this vector layer
Declaration
public static int GetScaleRangeCount(this IVectorLayerDefinition vl)
Parameters
Type | Name | Description |
---|---|---|
IVectorLayerDefinition | vl |
Returns
Type | Description |
---|---|
System.Int32 |
GetSchema(IVectorLayerDefinition)
Gets the referenced schema of this vector layer
Declaration
public static string GetSchema(this IVectorLayerDefinition vl)
Parameters
Type | Name | Description |
---|---|---|
IVectorLayerDefinition | vl |
Returns
Type | Description |
---|---|
System.String |
HasVectorScaleRanges(IVectorLayerDefinition)
Determines whether the vector layer has scale ranges
Declaration
public static bool HasVectorScaleRanges(this IVectorLayerDefinition vl)
Parameters
Type | Name | Description |
---|---|---|
IVectorLayerDefinition | vl | The vl. |
Returns
Type | Description |
---|---|
System.Boolean |
|
RemoveAllRules(ICompositeTypeStyle)
Removes all rules from a composite style
Declaration
public static void RemoveAllRules(this ICompositeTypeStyle style)
Parameters
Type | Name | Description |
---|---|---|
ICompositeTypeStyle | style |
RemoveStyles(IVectorScaleRange, IEnumerable<String>)
Purge the specified scale range of the following styles
Declaration
public static void RemoveStyles(this IVectorScaleRange range, IEnumerable<string> geomTypes)
Parameters
Type | Name | Description |
---|---|---|
IVectorScaleRange | range | |
System.Collections.Generic.IEnumerable<System.String> | geomTypes | The geometry types to remove |
RemoveStyles(IVectorScaleRange, String[])
Removes the styles.
Declaration
public static void RemoveStyles(this IVectorScaleRange range, params string[] geomTypes)
Parameters
Type | Name | Description |
---|---|---|
IVectorScaleRange | range | The range. |
System.String[] | geomTypes | The geom types. |
SetBackgroundColor(IFill, Color)
Sets the color of the background.
Declaration
public static void SetBackgroundColor(this IFill fil, Color c)
Parameters
Type | Name | Description |
---|---|---|
IFill | fil | The fil. |
System.Drawing.Color | c | The c. |
SetBackgroundColor(ITextSymbol, Color)
Sets the color of the background.
Declaration
public static void SetBackgroundColor(this ITextSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
ITextSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetBlockColor(IBlockSymbol, Color)
Sets the color of the block.
Declaration
public static void SetBlockColor(this IBlockSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
IBlockSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetDefaultColor(IGridSurfaceStyle, Color)
Sets the default color.
Declaration
public static void SetDefaultColor(this IGridSurfaceStyle style, Color c)
Parameters
Type | Name | Description |
---|---|---|
IGridSurfaceStyle | style | The style. |
System.Drawing.Color | c | The c. |
SetFillColor(IW2DSymbol, Color)
Sets the color of the fill.
Declaration
public static void SetFillColor(this IW2DSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
IW2DSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetForegroundColor(IFill, Color)
Sets the color of the foreground.
Declaration
public static void SetForegroundColor(this IFill fil, Color c)
Parameters
Type | Name | Description |
---|---|---|
IFill | fil | The fil. |
System.Drawing.Color | c | The c. |
SetForegroundColor(IFontSymbol, Color)
Sets the color of the foreground.
Declaration
public static void SetForegroundColor(this IFontSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
IFontSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetForegroundColor(ITextSymbol, Color)
Sets the color of the foreground.
Declaration
public static void SetForegroundColor(this ITextSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
ITextSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetLayerColor(IBlockSymbol, Color)
Sets the color of the layer.
Declaration
public static void SetLayerColor(this IBlockSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
IBlockSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetLineColor(IW2DSymbol, Color)
Sets the color of the line.
Declaration
public static void SetLineColor(this IW2DSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
IW2DSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetTextColor(IW2DSymbol, Color)
Sets the color of the text.
Declaration
public static void SetTextColor(this IW2DSymbol sym, Color c)
Parameters
Type | Name | Description |
---|---|---|
IW2DSymbol | sym | The sym. |
System.Drawing.Color | c | The c. |
SetTransparencyColor(IGridColorStyle, Color)
Sets the color of the transparency.
Declaration
public static void SetTransparencyColor(this IGridColorStyle style, Color c)
Parameters
Type | Name | Description |
---|---|---|
IGridColorStyle | style | The style. |
System.Drawing.Color | c | The c. |