This document is archived and information here might be outdated. Recommended version. |
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
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.
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;
}
}