SuperMap.WindowsPhone.Core.Feature.SetZIndex C# (CSharp) Method

SetZIndex() public method

${WP_core_Feature_method_SetZIndex_D}
public SetZIndex ( int value ) : void
value int ${WP_core_Feature_method_SetZIndex_param_value}
return void
        public void SetZIndex(int value)
        {
            this.zIndex = value;
            FeatureElement elementReference = this.GetElementReference();
            if (elementReference != null)
            {
                Canvas.SetZIndex(elementReference, value);
            }
        }

Usage Example

示例#1
0
        //添加虚拟线;
        private void addHoverLineSegment(Point2D p0 , Point2D p1 , int index0 , int index1 , Feature feature , Point2DCollection points , int partIndex)
        {
            GeoLine line = new GeoLine();
            line.Parts.Add(new Point2DCollection() { p0 , p1 });
            Feature segment = new Feature() { Geometry = line , Style = hoverLineStyle };
            segment.SetZIndex(1);

            segment.Attributes.Add("Point2DCollection" , points);
            segment.Attributes.Add("Feature" , feature);
            segment.Attributes.Add("Index0" , index0);
            segment.Attributes.Add("Index1" , index1);
            segment.Attributes.Add("PartIndex" , partIndex);

            hoverLayer.Features.Add(segment);
        }
All Usage Examples Of SuperMap.WindowsPhone.Core.Feature::SetZIndex