表11-1 Annotations集合方法 方法 描述 代码示例 向 Annotation集合添加符号。Map1 Annotations. AddS Addsymbol使用默认样式(由 mboI X,Y Map. Defaultstyle指定)。 Add Text 向 Annotation集合添加文本。 Map lAnnotations. Add Te 第四个参数表示文本在指定坐xt, 标系中的初始位置 Developer Services 79.44,468889 miPositiontl Remove 从集合中删除指定的 Mapl Annotations. Remo Annotation。 ve 1 RemoveAll从集合中删除所有的Mapl Annotation。 Annotations. RemoveAll
方法 描述 代码示例 AddSymbol 向Annotation集合添加符号。 使 用 默 认 样 式 ( 由 Map.DefaultStyle指定)。 Map1.Annotations.AddSy mbol X, Y AddText 向Annotation集合添加文本。 第四个参数表示文本在指定坐 标系中的初始位置。 Map1.Annotations.AddTe xt, “Developer Services”, 79.44, 46.8889, miPositionTL Remove 从 集 合 中 删 除 指 定 的 Annotation。 Map1.Annotations.Remo ve 1 RemoveAll 从 集 合 中 删 除 所 有 的 Annotation。 Map1. Annotations.RemoveAll 表11-1 Annotations集合方法
表11-2 Annotations集合属性 属性 描述 代码示例 Editable 指定注释是否可以编辑。 Mapl Annotations. E disable=true 指定 Annotation对象类型。If Mapl Annotations(2) =miTextAnnotation Then print it is text Graphic 包含了拥有 Annotation属请参阅联机帮助中的 性的 Graphic对象。请参阅 Graphic对象描述 联机帮助中的 raphic对象 描述
表11-2 Annotations 集合属性 属性 描述 代码示例 Editable 指定注释是否可以编辑。 Map1.Annotations.E ditable=True Type 指定Annotation对象类型。 If Map1.Annotations(2) Type =miTextAnnotation Then Print“It is text” Graphic 包含了拥有Annotation属 性的Graphic对象。请参阅 联机帮助中的Graphic对象 描述。 请参阅联机帮助中的 Graphic对象描述