Click or drag to resize

TextDraw Class

Represents a component which provides the data and functionality of a textdraw.
Inheritance Hierarchy

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public sealed class TextDraw : Component

The TextDraw type exposes the following members.

Properties
  NameDescription
Public propertyAlignment
Gets or sets the alignment of this textdraw.
Public propertyBackColor
Gets or sets the background color of this textdraw.
Public propertyBoxColor
Gets or sets the color of the box of this textdraw.
Public propertyEntity
Gets the entity to which this component has been attached.
(Inherited from Component.)
Public propertyFont
Gets or sets the font of this textdraw.
Public propertyForeColor
Gets or sets the color of the text of this textdraw.
Public propertyIsComponentAlive
Gets a value indicating whether this component is alive (has not been destroyed).
(Inherited from Component.)
Public propertyLetterSize
Gets or sets the size of the letters of this textdraw.
Public propertyOutline
Gets or sets the outline size of this textdraw.
Public propertyParent
Gets the parent entity of the entity to which this component has been attached.
(Inherited from Component.)
Public propertyPosition
Gets the position of this textdraw.
Public propertyPreviewModel
Gets or sets the preview model of this textdraw.
Public propertyProportional
Gets or sets a value indicating whether the font of this textdraw is rendered as a monospaced font.
Public propertySelectable
Gets or sets a value indicating whether this textdraw is selectable by the player.
Public propertyShadow
Gets or sets the shadow size of this textdraw.
Public propertyText
Gets or sets the text of this textdraw.
Public propertyTextSize
Gets or sets the size of this textdraw box and click-able area.
Public propertyUseBox
Gets or sets a value indicating whether a box is used for this textdraw.
Top
Methods
  NameDescription
Public methodAddComponentT
Adds a component of the specified type T to the entity.
(Inherited from Component.)
Public methodAddComponentT(Object)
Adds a component of the specified type T to the entity with the specified constructor args.
(Inherited from Component.)
Public methodDestroy
Destroys this component.
(Inherited from Component.)
Public methodDestroyComponentsT
Destroys the components of the specified type T attached to the entity.
(Inherited from Component.)
Public methodDestroyEntity
Destroys the entity.
(Inherited from Component.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetComponentT
Gets a component of the specified type T attached to the entity.
(Inherited from Component.)
Public methodGetComponentInChildrenT
Gets a component of the specified type T attached to a child entity of the entity using a depth first search.
(Inherited from Component.)
Public methodGetComponentInParentT
Gets a component of the specified type T attached to a parent entity of the entity.
(Inherited from Component.)
Public methodGetComponentsT
Gets all components of the specified type T attached to the entity.
(Inherited from Component.)
Public methodGetComponentsInChildrenT
Gets all components of the specified type T attached to a child entity of the entity.
(Inherited from Component.)
Public methodGetComponentsInParentT
Gets all components of the specified type T attached to a parent entity of the entity.
(Inherited from Component.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Hides this textdraw for all connected players.
Public methodHide(EntityId)
Hides this textdraw for the specified player.
Public methodSetPreviewRotation
Sets the preview object rotation and zoom of this textdraw.
Public methodSetPreviewVehicleColor
Sets the color of the preview vehicle of this textdraw.
Public methodShow
Shows this textdraw for all connected players.
Public methodShow(EntityId)
Shows this textdraw for the specified player.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also