Search Results for

    Show / Hide Table of Contents

    Class ExtensionMethods

    Extension method clas

    Inheritance
    System.Object
    ExtensionMethods
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.ObjectModels.LayerDefinition
    Assembly: OSGeo.MapGuide.ObjectModels.dll
    Syntax
    public static class ExtensionMethods

    Methods

    | Improve this Doc View Source

    AddOverride(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

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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

    true if vector layer has scale ranges; otherwise, false.

    | Improve this Doc View Source

    RemoveAllRules(ICompositeTypeStyle)

    Removes all rules from a composite style

    Declaration
    public static void RemoveAllRules(this ICompositeTypeStyle style)
    Parameters
    Type Name Description
    ICompositeTypeStyle style
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng