MonobjcMonobjc Documented Class Library
SetLineDashCountPhase Method (pattern, count, phase)
NamespacesMonobjc.AppKitNSBezierPathSetLineDashCountPhase(IntPtr, NSInteger, CGFloat)

Sets the line-stroking pattern for the receiver.

Original signature is '- (void)setLineDash:(const CGFloat *)pattern count:(NSInteger)count phase:(CGFloat)phase'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetLineDashCountPhase(
	IntPtr pattern,
	NSInteger count,
	CGFloat phase
)
Public Overridable Sub SetLineDashCountPhase ( _
	pattern As IntPtr, _
	count As NSInteger, _
	phase As CGFloat _
)
public:
virtual void SetLineDashCountPhase(
	IntPtr pattern, 
	NSInteger count, 
	CGFloat phase
)
Parameters
pattern (IntPtr)
A C-style array of floating point values that contains the lengths (measured in points) of the line segments and gaps in the pattern. The values in the array alternate, starting with the first line segment length, followed by the first gap length, followed by the second line segment length, and so on
count (NSInteger)
The number of values in pattern.
phase (CGFloat)
The offset at which to start drawing the pattern, measured in points along the dashed-line pattern. For example, a phase of 6 in the pattern 5-2-3-2 would cause drawing to begin in the middle of the first gap
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)