Leadtools名前空間 :LeadPoint構造体 |
[TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")] [DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=true)] [SerializableAttribute()] public struct LeadPoint : System.ValueType, System.IFormattable
'Declaration
<TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")> <DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=True)> <SerializableAttribute()> Public Structure LeadPoint Inherits System.ValueType Implements System.IFormattable
'Usage
Dim instance As LeadPoint
[TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")] [DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=true)] [SerializableAttribute()] public class LeadPoint
typedef struct LeadPoint
public final class LeadPoint
JAVASCRIPT_NOSTRUCTS
[TypeConverterAttribute("Leadtools.LeadPointConverter, Leadtools, Version=19.0.4.0, Culture=neutral, PublicKeyToken=null")] [DataContractAttribute(Name="LeadPoint", IsNameSetExplicitly=true)] [SerializableAttribute()] public value class LeadPoint : public System.ValueType, System.IFormattable
LEADTOOLSツールキットのいろいろな部分は、XとY値でポイントを表す構造体を必要とします。.NET frameworkがSystem.Drawing.PointとSystem.Windows.Pointなどのこれのために使われることができる多くの構造体を格納するが、特定のプラットホーム(1つ前の場合のGDI+とWPF/Silverlight)に拘束されます。
LeadPoint構造体は、ポイントのプラットフォームに依存しない表現を指定します。必要とされるならば、機種依存のポイントにLeadPoint構造体を変換することができます。
LeadPointにGDI+ System.Drawing.Point(ソース)を変換して、以下のcodeを使うこと:
LeadPoint dest = new LeadPoint(source.X, source.Y)
GDI+ System.Drawing.PointにLeadPoint(ソース)を変換して、以下のcodeを使うこと:
System.Drawing.Point dest = new System.Drawing.Point(source.X, source.Y)
LeadPointにWPF System.Windows.Point(ソース)を変換して、以下のcodeを使うこと:
LeadPoint dest = new LeadPoint((int)source.X, (int)source.Y)
WPF System.Windows.PointにLeadPoint(ソース)を変換して、以下のcodeを使うこと:
System.Windows.Point dest = new System.Windows.Point(source.X, source.Y)