Beispiel #1
0
        public void QueryOutline(IDisplay Display, IPolygon Outline)
        {
            IPolygon boundary = new ESRI.ArcGIS.Geometry.Polygon() as IPolygon;

            boundary.SetEmpty();
            ((ISymbol)this.m_pFillSymbol1).QueryBoundary(Display.hDC, Display.DisplayTransformation, this.m_pGeometry,
                                                         boundary);
            ((IPointCollection)Outline).AddPointCollection((IPointCollection)boundary);
        }
Beispiel #2
0
        public void QueryBounds(IDisplay Display, IEnvelope Bounds)
        {
            IPolygon boundary = new ESRI.ArcGIS.Geometry.Polygon() as IPolygon;

            boundary.SetEmpty();
            ((ISymbol)this.m_pFillSymbol1).QueryBoundary(Display.hDC, Display.DisplayTransformation, this.m_pGeometry,
                                                         boundary);
            Bounds.XMin             = boundary.Envelope.XMin;
            Bounds.XMax             = boundary.Envelope.XMax;
            Bounds.YMin             = boundary.Envelope.YMin;
            Bounds.YMax             = boundary.Envelope.YMax;
            Bounds.SpatialReference = boundary.Envelope.SpatialReference;
        }