從起始索引和結束索引,初始化 StrokeIntersection 結構的新執行個體 (Instance)。
命名空間: Microsoft.Ink
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Sub New ( _
beginIndex As Single, _
endIndex As Single _
)
'用途
Dim beginIndex As Single
Dim endIndex As Single
Dim instance As New StrokeIntersection(beginIndex, _
endIndex)
public StrokeIntersection(
float beginIndex,
float endIndex
)
public:
StrokeIntersection(
float beginIndex,
float endIndex
)
public StrokeIntersection(
float beginIndex,
float endIndex
)
public function StrokeIntersection(
beginIndex : float,
endIndex : float
)
參數
- beginIndex
型別:System.Single
筆畫交集的起點,以浮點索引表示。
- endIndex
型別:System.Single
筆畫交集的終點,以浮點索引表示。
備註
浮點索引是表示筆劃中兩點之間某個位置的浮點值。舉例來說,如果 0.0 是筆劃的第一點,而 1.0 是筆劃的第二點,0.5 即為第一點和第二點之間的中間處。同樣地,浮點索引值 37.25 則表示筆劃中沿著 37 和 38 兩點間線條上百分之 25 的位置。
範例
這個 C# 範例會宣告和建立 StrokeIntersection 結構 theStrokeIntersection。
StrokeIntersection theStrokeIntersection = new StrokeIntersection(start, end);
這個 Microsoft® Visual Basic® .NET 範例會宣告和建立 StrokeIntersection 結構 theStrokeIntersection。
Dim theStrokeIntersection As New StrokeIntersection(start, end)
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0