Gets the collection of corridor surfaces in the corridor.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public CorridorSurfaceCollection CorridorSurfaces { get; }
Visual Basic
Public ReadOnly Property CorridorSurfaces As CorridorSurfaceCollection
	Get
Visual C++
public:
property CorridorSurfaceCollection^ CorridorSurfaces {
	CorridorSurfaceCollection^ get ();
}

Remarks

When this property is invoked, a new CorridorSurfaceCollection object is created. When accessing the collection multiple times, it is a good practice to hold the reference in a variable and access the properties and methods through it.

Examples

CopyC#
 1// List surfaces
 2foreach (CorridorSurface oCorridorSurface in oCorridor.CorridorSurfaces)
 3{
 4    ed.WriteMessage("Corridor surface: {0}\n", oCorridorSurface.Name);
 5
 6    // Get the point codes for the surface.
 7    String[] oPointCodes = oCorridorSurface.PointCodes();
 8    ed.WriteMessage("Surface point codes:\n");
 9    foreach (String s in oPointCodes)
10    {
11        ed.WriteMessage("{0}\n", s);
12    }

See Also