TriangleElement.TriangleElementClass.Activate C# (CSharp) Method

Activate() public method

public Activate ( IDisplay Display ) : void
Display IDisplay
return void
    public void Activate(IDisplay Display)
    {
      //cache the display
      m_cachedDisplay = Display;

      SetupDeviceRatio(Display.hDC, Display);

      //need to calculate the points of the triangle polygon
      if(m_triangle.IsEmpty)
        BuildTriangleGeometry(m_pointGeometry);

      //need to refresh the element's tracker
      RefreshTracker();
    }