Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
mx.core 

UITextFormat  - AS3 Flex

Paketmx.core
Sınıfpublic class UITextFormat
Miras AlmaUITextFormat Inheritance TextFormat Inheritance Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

The UITextFormat class represents character formatting information for the UITextField class. The UITextField class defines the component used by many Flex composite components to display text.

The UITextFormat class extends the flash.text.TextFormat class to add the text measurement methods measureText() and measureHTMLText() and to add properties for controlling the advanced anti-aliasing of fonts.

İlgili API Öğeleri



Genel Özellikler
 ÖzellikTanımlayan:
 Inheritedalign : String
Paragrafın hizalamasını gösterir.
TextFormat
  antiAliasType : String
Defines the anti-aliasing setting for the UITextField class.
UITextFormat
 InheritedblockIndent : Object
Piksel olarak blok girintisini gösterir.
TextFormat
 Inheritedbold : Object
Metnin kalın harfli olup olmadığını belirtir.
TextFormat
 Inheritedbullet : Object
Metnin madde imli listenin parçası olduğunu gösterir.
TextFormat
 Inheritedcolor : Object
Metnin rengini gösterir.
TextFormat
 Inheritedconstructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru.
Object
  direction : String
The directionality of the text.
UITextFormat
 Inheritedfont : String
Bu metin biçimindeki metin için dize olarak font adı.
TextFormat
  gridFitType : String
Defines the grid-fitting setting for the UITextField class.
UITextFormat
 Inheritedindent : Object
Sol kenar boşluğundan paragraftaki ilk harfe kadar olan girintiyi gösterir.
TextFormat
 Inheriteditalic : Object
Bu metin biçimindeki metnin italik yapılıp yapılmadığını gösterir.
TextFormat
 Inheritedkerning : Object
Karakter aralığının etkin mi (true), devre dışı mı (false) olduğunu gösteren Boolean değeri.
TextFormat
 Inheritedleading : Object
Satırlar arasındaki dikey boşluğu (satır aralığı denir) temsil eden bir tam sayı.
TextFormat
 InheritedleftMargin : Object
Paragrafın piksel olarak sol kenar boşluğu.
TextFormat
 InheritedletterSpacing : Object
Tüm karakterler arasında eşit olarak dağıtılmış boşluk miktarını temsil eden bir sayı.
TextFormat
  locale : String
The locale of the text.
UITextFormat
  moduleFactory : IFlexModuleFactory
The moduleFactory used to create TextFields for embedded fonts.
UITextFormat
 InheritedrightMargin : Object
Paragrafın piksel olarak sağ kenar boşluğu.
TextFormat
  sharpness : Number
Defines the sharpness setting for the UITextField class.
UITextFormat
 Inheritedsize : Object
Bu metin biçiminde piksel olarak metnin boyutu.
TextFormat
 InheritedtabStops : Array
Özel sekme duraklarını negatif olmayan tam sayılar dizisi olarak belirtir.
TextFormat
 Inheritedtarget : String
Köprünün görüntülendiği hedef pencereyi gösterir.
TextFormat
  thickness : Number
Defines the thickness setting for the UITextField class.
UITextFormat
 Inheritedunderline : Object
Bu metin biçimini kullanan metnin altının çizili mi (true) değil mi (false) olduğunu gösterir.
TextFormat
 Inheritedurl : String
Bu metin biçimindeki metnin hedef URL'sini gösterir.
TextFormat
  useFTE : Boolean = false
Determines how the measureText() and measureHTMLText() methods do text measurement.
UITextFormat
Genel Yöntemler
 YöntemTanımlayan:
  
UITextFormat(systemManager:ISystemManager, font:String = null, size:Object = null, color:Object = null, bold:Object = null, italic:Object = null, underline:Object = null, url:String = null, target:String = null, align:String = null, leftMargin:Object = null, rightMargin:Object = null, indent:Object = null, leading:Object = null)
Constructor.
UITextFormat
 Inherited
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir.
Object
 Inherited
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir.
Object
  
Returns measurement information for the specified HTML text, which may contain HTML tags such as <font> and <b>, assuming that it is displayed in a single-line UITextField, and using this UITextFormat object to define the text format.
UITextFormat
  
Returns measurement information for the specified text, assuming that it is displayed in a single-line UITextField component, and using this UITextFormat object to define the text format.
UITextFormat
 Inherited
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir.
Object
 Inherited
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar.
Object
 Inherited
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür.
Object
 Inherited
Belirtilen nesnenin dize olarak temsil edilen halini döndürür.
Object
 Inherited
Belirtilen nesnenin temel değerini döndürür.
Object
Özellik Ayrıntısı

antiAliasType

özellik
public var antiAliasType:String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Defines the anti-aliasing setting for the UITextField class. The possible values are "normal" (flash.text.AntiAliasType.NORMAL) and "advanced" (flash.text.AntiAliasType.ADVANCED).

The default value is "advanced", which enables advanced anti-aliasing for the embedded font. Set this property to "normal" to disable the advanced anti-aliasing.

This property has no effect for system fonts.

This property applies to all the text in a UITextField object; you cannot apply it to some characters and not others.

Varsayılan değer şudur "advanced".

İlgili API Öğeleri

direction

özellik 
public var direction:String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The directionality of the text.

The allowed values are "ltr" for left-to-right text, as in Latin-style scripts, and "rtl" for right-to-left text, as in Arabic and Hebrew.

FTE and TLF use this value in their bidirectional text layout algorithm, which maps Unicode character order to glyph order.

Note: This style only applies when this UITextFormat is used with a UIFTETextField rather than a UITextField.

Varsayılan değer şudur null.

gridFitType

özellik 
public var gridFitType:String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Defines the grid-fitting setting for the UITextField class. The possible values are "none" (flash.text.GridFitType.NONE), "pixel" (flash.text.GridFitType.PIXEL), and "subpixel" (flash.text.GridFitType.SUBPIXEL).

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This property has no effect for system fonts.

This property applies to all the text in a UITextField object; you cannot apply it to some characters and not others.

Varsayılan değer şudur "pixel".

İlgili API Öğeleri

locale

özellik 
public var locale:String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The locale of the text.

FTE and TLF use this locale to map Unicode characters to font glyphs and to find fallback fonts.

Note: This style only applies when this UITextFormat is used with a UIFTETextField rather than a UITextField.

Varsayılan değer şudur null.

moduleFactory

özellik 
moduleFactory:IFlexModuleFactory

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

The moduleFactory used to create TextFields for embedded fonts.



Uygulama
    public function get moduleFactory():IFlexModuleFactory
    public function set moduleFactory(value:IFlexModuleFactory):void

sharpness

özellik 
public var sharpness:Number

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Defines the sharpness setting for the UITextField class. This property specifies the sharpness of the glyph edges. The possible values are Numbers from -400 through 400.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This property has no effect for system fonts.

This property applies to all the text in a UITextField object; you cannot apply it to some characters and not others.

Varsayılan değer şudur 0.

İlgili API Öğeleri

thickness

özellik 
public var thickness:Number

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Defines the thickness setting for the UITextField class. This property specifies the thickness of the glyph edges. The possible values are Numbers from -200 to 200.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This property has no effect for system fonts.

This property applies to all the text in a UITextField object; you cannot apply it to some characters and not others.

Varsayılan değer şudur 0.

İlgili API Öğeleri

useFTE

özellik 
public var useFTE:Boolean = false

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Determines how the measureText() and measureHTMLText() methods do text measurement.

If true, they use an offscreen instance of the FTETextField class in the Text Layout Framework. If false, they use an offscreen instance of the TextField class in the Flash Player.

Varsayılan değer şudur false.

Yapıcı Ayrıntı

UITextFormat

()Yapıcı
public function UITextFormat(systemManager:ISystemManager, font:String = null, size:Object = null, color:Object = null, bold:Object = null, italic:Object = null, underline:Object = null, url:String = null, target:String = null, align:String = null, leftMargin:Object = null, rightMargin:Object = null, indent:Object = null, leading:Object = null)

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Constructor.

Parametreler
systemManager:ISystemManager — A SystemManager object. The SystemManager keeps track of which fonts are embedded. Typically this is the SystemManager obtained from the systemManager property of UIComponent.
 
font:String (default = null) — A String specifying the name of a font, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
size:Object (default = null) — A Number specifying a font size in pixels, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
color:Object (default = null) — An unsigned integer specifying the RGB color of the text, such as 0xFF0000 for red, or null to indicate that is UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
bold:Object (default = null) — A Boolean flag specifying whether the text is bold, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
italic:Object (default = null) — A Boolean flag specifying whether the text is italic, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
underline:Object (default = null) — A Boolean flag specifying whether the text is underlined, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
url:String (default = null) — A String specifying the URL to which the text is hyperlinked, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
target:String (default = null) — A String specifying the target window where the hyperlinked URL is displayed. If the target window is null or an empty string, the hyperlinked page is displayed in the same browser window. If the urlString parameter is null or an empty string, this property has no effect. This parameter is optional, with a default value of null.
 
align:String (default = null) — A String specifying the alignment of the paragraph, as a flash.text.TextFormatAlign value, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
leftMargin:Object (default = null) — A Number specifying the left margin of the paragraph, in pixels, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
rightMargin:Object (default = null) — A Number specifying the right margin of the paragraph, in pixels, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
indent:Object (default = null) — A Number specifying the indentation from the left margin to the first character in the paragraph, in pixels, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.
 
leading:Object (default = null) — A Number specifying the amount of additional vertical space between lines, or null to indicate that this UITextFormat doesn't specify this property. This parameter is optional, with a default value of null.

İlgili API Öğeleri

Yöntem Ayrıntısı

measureHTMLText

()yöntem
public function measureHTMLText(htmlText:String, roundUp:Boolean = true):flash.text:TextLineMetrics

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Returns measurement information for the specified HTML text, which may contain HTML tags such as <font> and <b>, assuming that it is displayed in a single-line UITextField, and using this UITextFormat object to define the text format.

Parametreler

htmlText:String — A String specifying the HTML text to measure.
 
roundUp:Boolean (default = true) — A Boolean flag specifying whether to round up the the measured width and height to the nearest integer. Rounding up is appropriate in most circumstances.

Döndürür
flash.text:TextLineMetrics — A TextLineMetrics object containing the text measurements.

İlgili API Öğeleri

measureText

()yöntem 
public function measureText(text:String, roundUp:Boolean = true):flash.text:TextLineMetrics

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Returns measurement information for the specified text, assuming that it is displayed in a single-line UITextField component, and using this UITextFormat object to define the text format.

Parametreler

text:String — A String specifying the text to measure.
 
roundUp:Boolean (default = true) — A Boolean flag specifying whether to round up the the measured width and height to the nearest integer. Rounding up is appropriate in most circumstances.

Döndürür
flash.text:TextLineMetrics — A TextLineMetrics object containing the text measurements.

İlgili API Öğeleri





[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.