Xojo Documentation Xojo Documentation
  • Home
  • Get Started with Xojo
  • QuickStarts
  • Tutorials
  • Pi Programming
  • More Guides
  • Resources
  • User Guide
  • Language Reference
  • Release Notes
  • System Requirements
  • Deprecations
  • Videos
  • Feedback
  • Usage
  • Copyrights and Trademarks
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information
  • Log in
  • Xojo Documentation
  • Home
  • Get Started with Xojo
  • QuickStarts
  • Tutorials
  • Pi Programming
  • More Guides
  • Resources
  • User Guide
  • Language Reference
  • Release Notes
  • System Requirements
  • Deprecations
  • Videos
  • Feedback
  • Usage
  • Copyrights and Trademarks
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information

Line

From Xojo Documentation

This item was deprecated in version 2021r3.

Class (inherits from RectControl)

Draws a line.


Events
Close DropObject MouseExit
ConstructContextualMenu KeyDown MouseMove
ContextualMenuAction KeyUp MouseUp
DragEnter MouseDown MouseWheel
DragExit MouseDrag Open
DragOver MouseEnter


Properties
Active fa-lock-32.png LockRight Tooltip
AllowAutoDeactivate LockTop Top
AllowTabStop MouseCursor Transparent
Enabled MouseX fa-lock-32.png TrueWindow fa-lock-32.png
Handle fa-lock-32.png MouseY fa-lock-32.png Visible
Height Name fa-lock-32.png Width
Index fa-lock-32.png PanelIndex Window fa-lock-32.png
Left Parent X1
LineColor Scope fa-lock-32.png X2
LockBottom TabIndex Y1
LockLeft Thickness Y2


Methods
AcceptFileDrop AcceptTextDrop Invalidate
AcceptPictureDrop Close Refresh
AcceptRawDataDrop DrawInto SetFocus

Example

This example draws a horizontal red line with a 2-point width.

Me.LineColor = &cff000000
Me.Thickness = 2
Me.X1 = 10
Me.Y1 = 90
Me.X2 = 120
Me.Y2 = 90

See Also

Canvas, Window controls; RectControl class.

Retrieved from "http://docs.xojo.com/index.php?title=Line&oldid=84642"
Categories:
  • Noindexed pages
  • Deprecated
  • Deprecated2021r3
  • Classes
  • Language Reference
  • Language Reference Index
  • Desktop
  • Desktop Controls
  • This page was last edited on 22 September 2021, at 15:22.
  • Privacy policy
  • About Xojo Documentation
  • Disclaimers
  • Send Doc Feedback
  • Docs for the Xojo programming language and IDE
  • Powered by MediaWiki