MonobjcMonobjc Documented Class Library
SetWidthForSegment Method (width, segment)
NamespacesMonobjc.AppKitNSSegmentedControlSetWidthForSegment(CGFloat, NSInteger)

Sets the width of the specified segment.

Original signature is '- (void)setWidth:(CGFloat)width forSegment:(NSInteger)segment'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetWidthForSegment(
	CGFloat width,
	NSInteger segment
)
Public Overridable Sub SetWidthForSegment ( _
	width As CGFloat, _
	segment As NSInteger _
)
public:
virtual void SetWidthForSegment(
	CGFloat width, 
	NSInteger segment
)
Parameters
width (CGFloat)
The width of the segment, measured in points. Specify the value 0 if you want the segment to be sized to fit the available space automatically.
segment (NSInteger)
The index of the segment whose width you want to set. This method raises an NSRangeException if the index is out of bounds.
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)