The measure attribute.
[Visual Basic .NET] Public Property M As Double
[C#] public double M {get; set;}
[C++]
HRESULT get_M(
double* M
);
[C++]
HRESULT put_M(
double M
);
[C++]Parameters
M [out, retval] M is a parameter of type double M M is a parameter of type double
Product Availability
Description
Returns or Sets the M attribute on the Point. The M attribute refers to the Point's measure (similar to an address). The point must be MAware to make use of the M attribute.
Remarks
// The following example shows how to set the x,y,z,m properties
// for a point. Note that you need to tell the point to be
// M- and Z-aware.
public void DisplayCoordinates()
{
IPoint point = new PointClass();
point.PutCoords(100, 100);
IMAware mAware = point as IMAware;
mAware.MAware = true;
IZAware zAware = point as IZAware;
zAware.ZAware = true;
point.Z = 50;
point.M = 10;
System.Windows.Forms.MessageBox.Show(point.X + "," + point.Y + "," + point.Z + "," + point.M);
}
See Also
IPoint Interface | IPoint.X Property | IPoint.Y Property | IPoint.Z Property | IMSegmentation Interface | IMCollection Interface | IMSegmentation2 Interface | IPoint.M Property | IMAware Interface