共用方式為


PointD Structure

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
<SerializableAttribute> _
<TypeConverterAttribute(GetType(PointDConverter))> _
Public Structure PointD
[SerializableAttribute]
[TypeConverterAttribute(typeof(PointDConverter))]
public struct PointD
[SerializableAttribute]
[TypeConverterAttribute(typeof(PointDConverter))]
public value class PointD
[<Sealed>]
[<SerializableAttribute>]
[<TypeConverterAttribute(typeof(PointDConverter))>]
type PointD =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The PointD type exposes the following members.

Constructors

  Name Description
Public method PointD(PointF)
Public method PointD(Double, Double)

Top

Properties

  Name Description
Public property IsEmpty
Public property X
Public property Y

Top

Methods

  Name Description
Public methodStatic member Add Translates a PointD by adding the given size.
Public method Equals (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Offset
Public methodStatic member Subtract Translates a PointD by subtracting the given size.
Public methodStatic member ToPointF
Public method ToString Returns a string formatted like this: X=x, Y=y (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Addition Translates a PointD by adding the given size.
Public operatorStatic member Equality
Public operatorStatic member Inequality
Public operatorStatic member Subtraction Translates a PointD by subtracting the given size.

Top

Fields

  Name Description
Public fieldStatic member Empty

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace