MapAround.Mapping.PointStyle.Clone C# (CSharp) Method

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object
        public object Clone()
        {
            PointStyle ps = (PointStyle)MemberwiseClone();

            if (_image != null)
                ps._image = (Bitmap)_image.Clone();

            if (!string.IsNullOrEmpty(_fontName))
                ps._fontName = _fontName;
            ps._contentAlignment = _contentAlignment;

            return ps;
        }
PointStyle