| Pakiet | mx.controls.textClasses |
| Klasa | public class TextRange |
| Dziedziczenie | TextRange Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Powiązane elementy interfejsu API
mx.controls.RichTextEditor
mx.controls.Text
mx.controls.TextArea
mx.controls.TextInput
flash.text.TextFormatAlign
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| beginIndex : int
Zero-based index in the control's text field of the first
character in the range. | TextRange | ||
| bullet : Boolean
Whether the text in the range is in a bulleted list. | TextRange | ||
| color : Object
Color of the text in the range. | TextRange | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| endIndex : int
Zero-based index in the control's text field of the point
immediately after the last character in the range; equivalent to
the One-based index of the last character. | TextRange | ||
| fontFamily : String
Name of the font for text in the range. | TextRange | ||
| fontSize : int
Point size of the text in the range. | TextRange | ||
| fontStyle : String
Style of the font in the range, as "italic"
or "normal". | TextRange | ||
| fontWeight : String
Weight of the font in the range, as "bold"
or "normal". | TextRange | ||
| htmlText : String
Contents of the range in the form of HTML text. | TextRange | ||
| kerning : Boolean
A Boolean value that indicates whether kerning
is enabled (true) or disabled (false). | TextRange | ||
| letterSpacing : Number
The number of additional pixels to appear between each character. | TextRange | ||
| modifiesSelection : Boolean [tylko do odczytu]
Whether the TextRange modifies the currenly selected text. | TextRange | ||
| owner : UIComponent
The control that contains the text. | TextRange | ||
| text : String
Plain-text contents of the range. | TextRange | ||
| textAlign : String
Alignment of the text in the range. | TextRange | ||
| textDecoration : String
Decoration of the font in the range, as "underline"
or "normal". | TextRange | ||
| url : String
URL for a hypertext link in the range. | TextRange | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
TextRange(owner:UIComponent, modifiesSelection:Boolean = false, beginIndex:int = -1, endIndex:int = -1)
Create a new TextRange Object that represents a subset of the contents
of a text control, including the formatting information. | TextRange | ||
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
beginIndex | właściwość |
beginIndex:int| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Zero-based index in the control's text field of the first character in the range. If the fifth character in the text is the first character in the range, this property has a value of 4.
Implementacja
public function get beginIndex():int public function set beginIndex(value:int):voidbullet | właściwość |
bullet:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Whether the text in the range is in a bulleted list.
If only part of the range is in a bulleted list,
this value is false.
Implementacja
public function get bullet():Boolean public function set bullet(value:Boolean):voidcolor | właściwość |
color:Object| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Color of the text in the range.
You can set this value using any valid color identifier.
The property returns the value as a numeric value.
If the range has multiple colors, this value is null.
Implementacja
public function get color():Object public function set color(value:Object):voidendIndex | właściwość |
endIndex:int| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Zero-based index in the control's text field of the point immediately after the last character in the range; equivalent to the One-based index of the last character. If the fifth character in the text is the last character in the range, this property has a value of 5.
Implementacja
public function get endIndex():int public function set endIndex(value:int):voidfontFamily | właściwość |
fontFamily:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Name of the font for text in the range.
If the range has multiple fonts, this value is null.
Implementacja
public function get fontFamily():String public function set fontFamily(value:String):voidfontSize | właściwość |
fontSize:int| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Point size of the text in the range. If the range has multiple sizes, this value is 0.
Implementacja
public function get fontSize():int public function set fontSize(value:int):voidfontStyle | właściwość |
fontStyle:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Style of the font in the range, as "italic"
or "normal". Setting the property to any other string results
in normal style.
If the range has multiple styles, this value is null.
Implementacja
public function get fontStyle():String public function set fontStyle(value:String):voidfontWeight | właściwość |
fontWeight:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Weight of the font in the range, as "bold"
or "normal". Setting the property to any other string results
in normal weight.
If the range has multiple weights, this value is null.
Implementacja
public function get fontWeight():String public function set fontWeight(value:String):voidhtmlText | właściwość |
htmlText:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Contents of the range in the form of HTML text.
This property returns all HTML markup for the range, including
markup for formatting that is applied by Flex, not just
HTML that you specify in using an htmlText property.
This property is, therefore, a full HTML representation of the
text as it appears in the control.
Implementacja
public function get htmlText():String public function set htmlText(value:String):voidkerning | właściwość |
kerning:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
A Boolean value that indicates whether kerning
is enabled (true) or disabled (false).
Kerning adjusts the pixels between certain character pairs
to improve readability, and should be used only when necessary,
such as with headings in large fonts.
Kerning is supported for embedded fonts only.
Certain fonts, such as Verdana, and monospaced fonts,
such as Courier New, do not support kerning.
Wartością domyślną jest false.
Implementacja
public function get kerning():Boolean public function set kerning(value:Boolean):voidletterSpacing | właściwość |
letterSpacing:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The number of additional pixels to appear between each character. A positive value increases the character spacing beyond the normal spacing, while a negative value decreases it.
Wartością domyślną jest 0.
Implementacja
public function get letterSpacing():Number public function set letterSpacing(value:Number):voidmodifiesSelection | właściwość |
owner | właściwość |
owner:UIComponent| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The control that contains the text.
The owner control must have a textField property,
or, as is the case of the RichTextEditor control,
a textArea property.
The owner of the text in a RichTextEditor control is the
RichTextEditor control, not its TextArea subcontrol.
Initially set by the constructor.
Implementacja
public function get owner():UIComponent public function set owner(value:UIComponent):voidtext | właściwość |
textAlign | właściwość |
textAlign:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Alignment of the text in the range.
The flash.text.TextFormatAlign constants specify the valid values.
Setting this property to any other value has no effect.
If the range has multiple alignments, this value is null.
Implementacja
public function get textAlign():String public function set textAlign(value:String):voidPowiązane elementy interfejsu API
textDecoration | właściwość |
textDecoration:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Decoration of the font in the range, as "underline"
or "normal". Setting the property to any other string results
in normal text.
If the range has multiple decoration settings, this value is
null.
Implementacja
public function get textDecoration():String public function set textDecoration(value:String):voidurl | właściwość |
url:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
URL for a hypertext link in the range.
If the range does not include a link, the value
is the empty string.
If the range includes multiple links, the value
is null.
Implementacja
public function get url():String public function set url(value:String):voidTextRange | () | Konstruktor |
public function TextRange(owner:UIComponent, modifiesSelection:Boolean = false, beginIndex:int = -1, endIndex:int = -1)| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Create a new TextRange Object that represents a subset of the contents of a text control, including the formatting information.
Parametryowner:UIComponent — The control that contains the text. The control must have
a textField property, or, as is the case of the
RichTextEditor control, a textArea property.
| |
modifiesSelection:Boolean (default = false) — Whether to select the text in the range.
If you set this parameter to true and do not specify a
begin or end index that corresponds to text in the control, Flex
uses the begin or end index of the current text selection.
If this parameter is true, you omit the
beginIndex and endIndex
parameters, and there is no selection, the TextRange object is empty.
| |
beginIndex:int (default = -1) — Zero-based index of the first character in the range.
If the modifiesSelection parameter is false
and you omit this parameter or specify a negative value,
the range starts with the first text character.
| |
endIndex:int (default = -1) — Zero-based index of the position after the
last character in the range.
If the modifiesSelection parameter is false
and you omit this parameter, specify a negative value, or specify
a value past the end of the text, the range ends with the last
text character.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne