MSFText
A text element that can be displayed on the map.
-
Constructs a Text object with the specified style and attaches it to a billboard element.
Declaration
Objective-C
- (id)initWithBaseBillboard:(MSFBillboard *)baseBillboard style:(MSFTextStyle *)style text:(NSString *)text;Swift
init!(baseBillboard: MSFBillboard!, style: MSFTextStyle!, text: String!)Parameters
baseBillboardThe billboard this text label will be attached to.
styleThe style that defines what this text label looks like.
textThe text to be displayed.
-
Constructs a Text object from a geometry object and a style.
Declaration
Objective-C
- (id)initWithGeometry:(MSFGeometry *)geometry style:(MSFTextStyle *)style text:(NSString *)text;Swift
init!(geometry: MSFGeometry!, style: MSFTextStyle!, text: String!)Parameters
geometryThe geometry object that defines the location of this text label.
styleThe style that defines what this text label looks like.
textThe text to be displayed.
-
Constructs a Text object from a map position and a style.
Declaration
Objective-C
- (id)initWithPos:(MSFMapPos *)pos style:(MSFTextStyle *)style text:(NSString *)text;Swift
init!(pos: MSFMapPos!, style: MSFTextStyle!, text: String!)Parameters
posThe map position that defines the location of this text label.
styleThe style that defines what this text label looks like.
textThe text to be displayed.
-
Returns the display text.
Declaration
Objective-C
- (NSString *)getText;Swift
func getText() -> String!Return Value
The display text.
-
Sets the display text.
Declaration
Objective-C
- (void)setText:(NSString *)text;Swift
func setText(_ text: String!)Parameters
textThe text to be displayed.
-
Returns the style of this text label.
Return Value
The style that defines what this text label looks like.
-
Sets the style for this text label.
Declaration
Objective-C
- (void)setStyle:(MSFTextStyle *)style;Swift
func setStyle(_ style: MSFTextStyle!)Parameters
styleThe new style that defines what this text label looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()