This document is archived and information here might be outdated.  Recommended version.


IMCollection.MultiplyMs Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IMCollection.MultiplyMs Method

Multiplies all the M values by a factor.

[Visual Basic .NET]
Public Sub MultiplyMs ( _
    ByVal factor As Double _
)
[C#]
public void MultiplyMs (
    double factor
);
[C++]
HRESULT MultiplyMs(
  double factor
);
[C++]

Parameters factor factor is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The MultiplyMs method will update all the measure attributes for a PolyLine, and should only be used if every measure has been set (i.e. there are no NaNs). Check the IMAware::MSimple property or use the IMSegmentation methods to fill in any missing measure values. MultiplyMs is analogous to scaling spatial coordinates.

[C#]

    public IPolyline MultiplyMs(IPolyline polyline, double factor)
    {
        //Offset (add) the M values on a PolyLine by a factor
        IMAware mAware=polyline as IMAware;
        IMCollection mCollection=mAware as IMCollection;
        if (mAware.MAware)
        {
            mCollection.MultiplyMs(factor);
            return mCollection as IPolyline;
        }
        else
        {
            return null;
        }

    }

See Also

IMCollection Interface