Ejemplo n.º 1
0
 /// <summary>
 /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.DiameterShapeBase" />.
 /// </summary>
 new public static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
 {
     foreach (EntityPropertyDefinition pi in CaptionedShapeBase.GetPropertyDefinitions(version))
     {
         yield return(pi);
     }
     yield return(new EntityFieldDefinition("Diameter", typeof(Int32)));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.RegularPolygonBase" />.
        /// </summary>
        new public static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
        {
            foreach (EntityPropertyDefinition pi in CaptionedShapeBase.GetPropertyDefinitions(version))
            {
                yield return(pi);
            }
            yield return(new EntityFieldDefinition("Radius", typeof(float)));

            yield return(new EntityFieldDefinition("VertexCount", typeof(int)));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.TriangleBase" />.
        /// </summary>
        public new static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
        {
            foreach (EntityPropertyDefinition pi in CaptionedShapeBase.GetPropertyDefinitions(version))
            {
                yield return(pi);
            }
            yield return(new EntityFieldDefinition("A_X", typeof(int)));

            yield return(new EntityFieldDefinition("A_Y", typeof(int)));

            yield return(new EntityFieldDefinition("B_X", typeof(int)));

            yield return(new EntityFieldDefinition("B_Y", typeof(int)));

            yield return(new EntityFieldDefinition("C_X", typeof(int)));

            yield return(new EntityFieldDefinition("C_Y", typeof(int)));
        }