Gets or sets the x-coordinate of the Line end point.
Assembly: PresentationFramework (in PresentationFramework.dll)
Legacy Code Example
The following example shows how to create a Line and then set the property by using code.
// Add a Line Element myLine = gcnew Line(); myLine->Stroke = Brushes::LightSteelBlue; myLine->X1 = 1; myLine->X2 = 50; myLine->Y1 = 1; myLine->Y2 = 50; myLine->HorizontalAlignment = HorizontalAlignment::Left; myLine->VerticalAlignment = VerticalAlignment::Center; myLine->StrokeThickness = 2; myGrid->Children->Add(myLine);
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0