Adobe® Flash® Platform 用 ActionScript® 3.0 リファレンスガイド
ホーム  |  パッケージおよびクラスリストの非表示 |  パッケージ  |  クラス  |  新機能  |  索引  |  付録  |  英語で表示される理由
フィルター: AIR 30.0 以前, Flash Player 30.0 以前, Flash Lite 4
Flex 4.6 以前, Flash Pro CS6 以前
フィルターを非表示
flash.text.engine 

ElementFormat  - AS3

パッケージx

トップレベル
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

言語エレメント

グローバル定数
グローバル関数
演算子
ステートメント、キーワード、ディレクティブ
特殊な型

付録

新機能
コンパイルエラー
コンパイラー警告
ランタイムエラー
ActionScript 3 への移行
サポートされている文字セット
MXML のみのタグ
モーション XML エレメント
Timed Text タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
ActionScript の例の使用方法
法律上の注意
パッケージflash.text.engine
クラスpublic final class ElementFormat
継承ElementFormat Inheritance Object

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

ElementFormat クラスは、ContentElement に適用できるフォーマット情報を表します。ElementFormat クラスを使用して、ContentElement の様々なサブクラスに特定のテキストフォーマットを作成します。ElementFormat クラスのプロパティは、デバイスフォントおよび埋めこみフォントに適用されます。

ElementFormat オブジェクトを TextBlock の ContentElement に適用しても、TextBlock は無効化されません。ElementFormat が ContentElement に適用されると、その locked プロパティは true に設定されます。ロックされた ElementFormat オブジェクトのプロパティを変更することはできません。代わりに、clone() メソッドを使用してオブジェクトのロックされていないコピーを作成し、そのコピーを変更して ContentElement に割り当てることができます。

例を表示

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
  alignmentBaseline : String
このフォーマットを持つエレメントの行の基準を揃える内部エレメントのベースラインのタイプを指定します。
ElementFormat
  alpha : Number
このオブジェクトに影響される行エレメントの透明を指定します。
ElementFormat
  baselineShift : Number
エレメントのベースラインシフトを示します(ピクセル単位)。
ElementFormat
  breakOpportunity : String
このテキストに適用される改行の条件です。
ElementFormat
  color : uint
テキストの色を示します。
ElementFormat
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
  digitCase : String
このテキストに使用される数字の大文字小文字区別です。
ElementFormat
  digitWidth : String
このテキストに使用される数字の幅です。
ElementFormat
  dominantBaseline : String
行の基準として使用するベースラインのタイプを指定します。
ElementFormat
  fontDescription : FontDescription
フォントを説明するプロパティのオブジクト。
ElementFormat
  fontSize : Number
テキストのサイズ(ピクセル単位)です。
ElementFormat
  kerning : String
カーニングでは、読みやすくするために、特定の文字ペア間でピクセルを調整します。
ElementFormat
  ligatureLevel : String
このテキストに使用される合字のレベルです。
ElementFormat
  locale : String
テキストのロケールです。
ElementFormat
  locked : Boolean
ElementFormat がロックされているかどうかを示します。
ElementFormat
  textRotation : String
個々の文字に適用される回転を設定します。
ElementFormat
  trackingLeft : Number
各文字の左側に適用されるトラッキングまたは手動カーニング(ピクセル単位)です。
ElementFormat
  trackingRight : Number
各文字の右側に適用されるトラッキングまたは手動カーニング(ピクセル単位)です。
ElementFormat
  typographicCase : String
このテキストに使用される文字の大文字小文字区別です。
ElementFormat
パブリックメソッド
 メソッド定義元
  
ElementFormat(fontDescription:FontDescription = null, fontSize:Number = 12.0, color:uint = 0x000000, alpha:Number = 1.0, textRotation:String = "auto", dominantBaseline:String = "roman", alignmentBaseline:String = "useDominantBaseline", baselineShift:Number = 0.0, kerning:String = "on", trackingRight:Number = 0.0, trackingLeft:Number = 0.0, locale:String = "en", breakOpportunity:String = "auto", digitCase:String = "default", digitWidth:String = "default", ligatureLevel:String = "common", typographicCase:String = "default")
ElementFormat オブジェクトを作成します。
ElementFormat
  
ElementFormat のロックされていないクローンコピーを構築します。
ElementFormat
  
fontDescription および fontSize で指定されるフォントの em ボックス、取り消し線位置、取り消し線太さ、下線位置および下線太さを記述するプロパティを持つ FontMetrics オブジェクトを返します。
ElementFormat
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
プロパティの詳細

alignmentBaseline

プロパティ
alignmentBaseline:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このフォーマットを持つエレメントの行の基準を揃える内部エレメントのベースラインのタイプを指定します。このプロパティには、TextBaseline 定数を使用します。

TextBlock.baselineFontDescription および TextBlock.baselineFontSize が設定され、このロジックより優先されない場合、文字揃えの基準は行内の最大の垂直エレメントで決まります。

デフォルト値は TextBaseline.USE_DOMINANT_BASELINE です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
TextBaseline.ROMANdominantBaseline が、行の欧文ベースラインに揃えます。
TextBaseline.ASCENTdominantBaseline が、行のアセントのベースラインに揃えます。
TextBaseline.DESCENTdominantBaseline が、行のディセントのベースラインに揃えます。
TextBaseline.IDEOGRAPHIC_TOPdominantBaseline が、行の文字最上部のベースラインに揃えます。
TextBaseline.IDEOGRAPHIC_CENTERdominantBaseline が、行の文字の中心のベースラインに揃えます。
TextBaseline.IDEOGRAPHIC_BOTTOMdominantBaseline が、行の文字最下部のベースラインに揃えます。
TextBaseline.USE_DOMINANT_BASELINEdominantBaseline が、行の同一のベースラインに揃えます。

サブクラスプロパティ設定の効果
GraphicElementグラフィックエレメントの dominantBaseline が文字揃えの基準を設定します。
GroupElement効果はありません。
TextElementテキストエレメントの dominantBaseline が行の文字揃えの基準を設定します。



実装
    public function get alignmentBaseline():String
    public function set alignmentBaseline(value:String):void

例外
ArgumentError TextBaseline のメンバーではないいずれかの値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

alpha

プロパティ 
alpha:Number

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このオブジェクトに影響される行エレメントの透明を指定します。有効な値は 0(完全な透明)~ 1(完全な不透明)の範囲です。alpha が 0 に設定されている表示オブジェクトは、表示されない場合でも、アクティブです。

デフォルト値は 1 です。

サブクラスプロパティ設定の効果
GraphicElementグラフィックエレメントに指定されたアルファを適用します。グラフィック DisplayObject 自体または TextLine に設定されたアルファと乗法的に結合します。
GroupElement効果はありません。
TextElementテキストエレメントに指定されたアルファを適用します。TextLine に設定されたアルファと乗法的に結合します。



実装
    public function get alpha():Number
    public function set alpha(value:Number):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

baselineShift

プロパティ 
baselineShift:Number

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

エレメントのベースラインシフトを示します(ピクセル単位)。

エレメントは、dominantBaseline から、この量だけ離れます。エレメントのメンバーの y 位置にオフセットが追加されるため、回転されないテキストで正のベースラインシフトはエレメントを下に移動させ、負のベースラインシフトはエレメントを上に移動させます。

デフォルト値は 0.0(シフトなし)です。

サブクラスプロパティ設定の効果
GraphicElementグラフィックをベースラインから離します。
GroupElement効果はありません。
TextElementテキストをベースラインから離します。



実装
    public function get baselineShift():Number
    public function set baselineShift(value:Number):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

breakOpportunity

プロパティ 
breakOpportunity:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このテキストに適用される改行の条件です。 折り返しテキストが複数行に分けられるときにどの文字が改行文字として使用できるかは、このプロパティにより決められます。このプロパティには、BreakOpportunity 定数を使用します。

デフォルト値は BreakOpportunity.AUTO です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
BreakOpportunity.AUTO改行を行うかどうかの判断は、単語間の区切りやハイフンなど、Unicode 文字プロパティに基づいて行われます。
BreakOpportunity.ANYContentElement オブジェクト内の文字が、改行を行うかどうかの判断に使用されます。通常、ローマン体のテキストが日中韓のテキストに埋め込まれており、単語の途中で改行されることが望ましい場合に使用されます。
BreakOpportunity.NONE範囲内の文字は、改行を行うかどうかの判断に使用されません。
BreakOpportunity.ALL範囲内のすべての文字が、改行を行うかどうかの判断に使用されます。これは、文字ごとに改行が行われることを意味します。 パス上のテキストのような効果を作成するのに便利です。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElementグループ内で隣接するテキストエレメント間で改行を行うかどうかを判断します。グループの elementFormat が、null の場合、隣接するエレメントの最初のエレメントのフォーマットが使用されます。
TextElementテキストエレメントの文字間で改行を行うかどうかを判断します。



実装
    public function get breakOpportunity():String
    public function set breakOpportunity(value:String):void

例外
ArgumentError BreakOpportunity のメンバーではない値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

color

プロパティ 
color:uint

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

テキストの色を示します。3 つの 8 bit RGB コンポーネントを示す整数(0xFF0000 は赤、0x00FF00 は緑など)です。

デフォルト値は 0x000000 で、黒です。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementテキストの色を設定します。



実装
    public function get color():uint
    public function set color(value:uint):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

digitCase

プロパティ 
digitCase:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このテキストに使用される数字の大文字小文字区別です。数字の大文字小文字区別の違いは、数字のグループのスタイルと位置に影響します。このプロパティには、DigitCase 定数を使用します。

デフォルト値は DigitCase.DEFAULT です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
DigitCase.DEFAULTデフォルトの数字の大文字小文字区別をテキストに適用します。
DigitCase.LININGライニング数字の大文字小文字区別をテキストに適用します。
DigitCase.OLD_STYLEオールドスタイル数字の大文字小文字区別をテキストに適用します。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementエレメントのテキストに使用する数字の大文字小文字区別を決定します。



実装
    public function get digitCase():String
    public function set digitCase(value:String):void

例外
ArgumentError DigitCase のメンバーでないいずれかの値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

digitWidth

プロパティ 
digitWidth:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このテキストに使用される数字の幅です。このプロパティには、DigitWidth 定数を使用します。

デフォルト値は DigitWidth.DEFAULT です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
DigitWidth.DEFAULTデフォルトの数字の幅をテキストに適用します。
DigitWidth.PROPORTIONALプロポーショナル数字の幅をテキストに適用します。
DigitWidth.TABULAR等幅数字の幅をテキストに適用します。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementエレメントのテキストに使用する数字の幅を決定します。



実装
    public function get digitWidth():String
    public function set digitWidth(value:String):void

例外
ArgumentError DigitWidth のメンバーでないいずれかの値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

dominantBaseline

プロパティ 
dominantBaseline:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

行の基準として使用するベースラインのタイプを指定します。行の基準を文字の基準に合わせると、行のエレメントの垂直位置が決まります。 このプロパティには、TextBaseline 定数を使用します。

エレメントのコンテンツによりベースラインが決まります。TextElement の場合、ベースラインはフォントおよびポイントサイズで決まります。GraphicElement の場合、ベースラインはエレメントの高さで決まります。

デフォルト値は、TextBaseline.ROMAN です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
TextBaseline.ROMANエレメントの欧文ベースラインが、alignmentBaseline に揃えられます。
TextBaseline.ASCENTエレメントのアセントのベースラインが、alignmentBaseline に揃えられます。
TextBaseline.DESCENTエレメントのディセントのベースラインが、alignmentBaseline に揃えられます。
TextBaseline.IDEOGRAPHIC_TOPエレメントの文字最上部のベースラインが、alignmentBaseline に揃えられます。
TextBaseline.IDEOGRAPHIC_CENTERエレメントの文字の中心のベースラインが、alignmentBaseline に揃えられます。
TextBaseline.IDEOGRAPHIC_BOTTOMエレメントの文字最下部のベースラインが、alignmentBaseline に揃えられます。

サブクラスプロパティ設定の効果
GraphicElementalignmentBaseline に揃えるグラフィックエレメントのベースラインを決定します。
GroupElement効果はありません。
TextElementalignmentBaseline に揃えるテキストエレメントのベースラインを決定します。



実装
    public function get dominantBaseline():String
    public function set dominantBaseline(value:String):void

例外
ArgumentError TextBaseline のメンバーではないいずれかの値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

fontDescription

プロパティ 
fontDescription:FontDescription

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

フォントを説明するプロパティのオブジクト。

デフォルト値は、デフォルトで作成される FontDescription オブジェクトです。

fontDescription プロパティが設定されているときは、提供された FontDescription オブジェクトがロックされます。その locked プロパティは true に設定されます。ロックされた FontDescription を変更することはできません。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementエレメントのテキストに使用するフォントを決定します。



実装
    public function get fontDescription():FontDescription
    public function set fontDescription(value:FontDescription):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

fontSize

プロパティ 
fontSize:Number

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

テキストのサイズ(ピクセル単位)です。

デフォルト値は 12.0 です。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementエレメントのテキストのサイズをピクセル単位で指定します。



実装
    public function get fontSize():Number
    public function set fontSize(value:Number):void

例外
ArgumentError — 0 未満の値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

kerning

プロパティ 
kerning:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

カーニングでは、読みやすくするために、特定の文字ペア間でピクセルを調整します。カーニングは、カーニングテーブルを持つすべてのフォントに対してサポートされています。

デフォルト値は Kerning.ON です。

このプロパティの値を設定するには、Kerning クラスに以下の定数を使用します。

ストリング値説明
Kerning.ONカーニングが有効にされています。
Kerning.OFFカーニングが無効にされています。
Kerning.AUTOカーニングは、アジア系文字のテキスト編集で不適切な場合を除き、有効にされています。 カーニングは、漢字、ひらがなまたはカタカナのいずれでもない 2 文字の間に適用されます。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElementグループ内で隣接するテキストエレメント間でカーニングが適用されるかどうかを決定します。グループの elementFormat が、null の場合、隣接するエレメントの最初のエレメントのフォーマットが使用されます。
TextElementテキストエレメントの文字間でカーニングが適用されるかどうかを決定します。



実装
    public function get kerning():String
    public function set kerning(value:String):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

ligatureLevel

プロパティ 
ligatureLevel:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このテキストに使用される合字のレベルです。2 つ以上の letter-form が 1 つの文字に結合された場合には、合字が起こります。合字は通常、「fi」、「fl」、「ae」などの文字の組の用に共通のコンポーネントを共有する連続した文字を置き換えます。合字は、ラテン語およびラテン語以外の文字セットの両方で使用されます。このプロパティには、LigatureLevel 定数を使用します。

デフォルト値は LigatureLevel.COMMON です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
LigatureLevel.NONE合字は作成されません。
LigatureLevel.MINIMUM最低限の合字が作成されます。
LigatureLevel.COMMON一般的な欧文合字が作成されます。
LigatureLevel.UNCOMMON珍しい合字が作成されます。
LigatureLevel.EXOTIC特殊な合字が作成されます。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElementグループ内で隣接するテキストエレメント間で合字のレベルを判断します。グループの elementFormat が、null の場合、隣接するエレメントの最初のエレメントのフォーマットが使用されます。
TextElementテキストエレメントの文字間で合字のレベルを判断します。



実装
    public function get ligatureLevel():String
    public function set ligatureLevel(value:String):void

例外
ArgumentError LigatureLevel のメンバーでないいずれかの値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

locale

プロパティ 
locale:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

テキストのロケールです。大文字小文字変換およびシェイピングを制御します。標準のロケール識別子が使用されます。例えば、「en」、「en_US」および「en-US」はすべて英語で、「ja」は日本語です。ロケールコードのリストについては、ISO 639-2 コードのリストを参照してください。

デフォルト値は「en」です。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementエレメントのテキストの大文字小文字変換およびシェイピングを決定します。



実装
    public function get locale():String
    public function set locale(value:String):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

locked

プロパティ 
locked:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5., Flash Lite 4

ElementFormat がロックされているかどうかを示します。true の場合、ElementFormat を変更することはできません。ElementFormat.clone() を呼び出して ElementFormat オブジェクトのロックされていないコピーを取得します。



実装
    public function get locked():Boolean
    public function set locked(value:Boolean):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

textRotation

プロパティ 
textRotation:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

個々の文字に適用される回転を設定します。このプロパティには、TextRotation クラスで定義されている定数を使用します。

デフォルト値は TextRotation.AUTO です。

任意の文字の最終的な回転は、ElementFormat.textRotationContentElement.textRotation および TextBlock.lineRotation の合計になります。

通常、このプロパティは、縦書きレイアウトで正しく表示されるために文字を回転しなければならないアジア系文字のテキストに使用します。これを行うには、TextRotation.AUTOTextBlock.lineRotation = TextRotation.ROTATE_90 とを一緒に使用します。

縦書きのレイアウト情報を含まないフォントに対してこのプロパティを設定すると、好ましくない結果になることがあります。 日本語フォントの「MS 明朝」などの vmtx テーブルや VORG テーブルを含むフォントは、正しくレイアウトするためにレイアウトエンジンで必要になるデータがこれらのテーブルによって提供されるので、正しく機能します。必要な情報を持っていない Verdana のようなフォントは正しく機能しません。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
TextRotation.ROTATE_0文字は回転しません。
TextRotation.ROTATE_90文字は時計回りに 90 度回転します。
TextRotation.ROTATE_180文字は 180 度回転します。
TextRotation.ROTATE_270文字は時計回りに 270 度回転します。
TextRotation.AUTO文字の Unicode プロパティに従って、全角文字に対してのみ、反時計回りの 90 度回転を指定します。この値は通常、日中韓のテキストで回転が必要な文字に対してのみ使用されます。この回転は、縦書きテキストにのみ適用され、他の文字に影響を与えずに全角文字を垂直方向に変えます。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementテキストエレメントの文字の回転を決定します。



実装
    public function get textRotation():String
    public function set textRotation(value:String):void

例外
ArgumentError TextRotation のメンバーではないいずれかの値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

trackingLeft

プロパティ 
trackingLeft:Number

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5., Flash Lite 4

各文字の左側に適用されるトラッキングまたは手動カーニング(ピクセル単位)です。kerning が有効にされている場合、フォントのカーニングテーブルの値に trackingLeft 値が追加されます。kerning が無効にされている場合、trackingLeft 値が手動カーニングの値として使用されます。正の値と負の値の両方がサポートされます。

一般に、必要なトラッキング値は trackingRighttrackingLeft の間で分割されます。そうでない場合、つまり複数の方向性が混在しているテキストでは、双方向境界ではトラッキングは 2 倍、それ以外では none となります。

デフォルト値は 0.0 です。

サブクラスプロパティ設定の効果
GraphicElementグラフィックの左側に適用されるトラッキングを決めます。
GroupElement効果はありません。
TextElementテキストエレメント中の文字の左側に適用されるトラッキングを決めます。

例:

          //positive tracking added to kerning
          var ef1:ElementFormat = new ElementFormat();
          ef1.kerning = flash.text.engine.Kerning.ON;
          ef1.trackingLeft = 0.5;
     
          //negative manual kerning
          var ef2:ElementFormat = new ElementFormat();
          ef2.kerning = flash.text.engine.Kerning.OFF;
          ef2.trackingLeft = -1.0;
     



実装
    public function get trackingLeft():Number
    public function set trackingLeft(value:Number):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

trackingRight

プロパティ 
trackingRight:Number

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5., Flash Lite 4

各文字の右側に適用されるトラッキングまたは手動カーニング(ピクセル単位)です。kerning が有効にされている場合、フォントのカーニングテーブルの値に trackingRight 値が追加されます。kerning が無効にされている場合、trackingRight 値が手動カーニングの値として使用されます。正の値と負の値の両方がサポートされます。

一般に、必要なトラッキング値は trackingRighttrackingLeft の間で分割されます。そうでない場合、つまり複数の方向性が混在しているテキストでは、双方向境界ではトラッキングは 2 倍、それ以外では none となります。

デフォルト値は 0.0 です。

サブクラスプロパティ設定の効果
GraphicElementグラフィックの右側に適用されるトラッキングを決めます。
GroupElement効果はありません。
TextElementテキストエレメント中の文字の右側に適用されるトラッキングを決めます。

例:

          //positive tracking added to kerning
          var ef1:ElementFormat = new ElementFormat();
          ef1.kerning = flash.text.engine.Kerning.ON;
          ef1.trackingRight = 0.5;
     
          //negative manual kerning
          var ef2:ElementFormat = new ElementFormat();
          ef2.kerning = flash.text.engine.Kerning.OFF;
          ef2.trackingRight = -1.0;
     



実装
    public function get trackingRight():Number
    public function set trackingRight(value:Number):void

例外
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

typographicCase

プロパティ 
typographicCase:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

このテキストに使用される文字の大文字小文字区別です。このプロパティには、TypographicCase クラスで定義されている定数を使用します。

デフォルト値は TypographicCase.DEFAULT です。

このプロパティの値を設定するには、次のストリング値を使用します。

ストリング値説明
TypographicCase.DEFAULTすべての文字に通常の大文字と小文字を使用するよう指定します。
TypographicCase.TITLE出力時にタイトル文字に大文字を使用するよう指定します。
TypographicCase.CAPS出力時に大文字の間隔が調整されるよう指定します。
TypographicCase.SMALL_CAPS出力時に大文字でスモールキャップ文字を使用するよう指定します。
TypographicCase.UPPERCASE出力時にすべての文字で大文字を使用するよう指定します。
TypographicCase.LOWERCASE出力時にすべての文字で小文字を使用するよう指定します。
TypographicCase.CAPS_AND_SMALL_CAPS出力時にすべての小文字でスモールキャップス文字を使用するよう指定します。

サブクラスプロパティ設定の効果
GraphicElement効果はありません。
GroupElement効果はありません。
TextElementエレメントのテキストに使用する文字の大文字小文字区別を決定します。



実装
    public function get typographicCase():String
    public function set typographicCase(value:String):void

例外
ArgumentError TypographicCase のメンバーではない値に設定する場合。
 
IllegalOperationError — ElementFormat オブジェクトのロック後に設定する場合(lockedtrue の場合)。

関連する API エレメント

コンストラクターの詳細

ElementFormat

()コンストラクター
public function ElementFormat(fontDescription:FontDescription = null, fontSize:Number = 12.0, color:uint = 0x000000, alpha:Number = 1.0, textRotation:String = "auto", dominantBaseline:String = "roman", alignmentBaseline:String = "useDominantBaseline", baselineShift:Number = 0.0, kerning:String = "on", trackingRight:Number = 0.0, trackingLeft:Number = 0.0, locale:String = "en", breakOpportunity:String = "auto", digitCase:String = "default", digitWidth:String = "default", ligatureLevel:String = "common", typographicCase:String = "default")

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

ElementFormat オブジェクトを作成します。

パラメーター
fontDescription:FontDescription (default = null) — このエレメント形式で使用されるフォントを識別する FontDescription オブジェクトです。デフォルト値は null です。フォントの説明を指定しない場合は、デフォルトのフォントの説明が作成されます。
 
fontSize:Number (default = 12.0) — テキストのサイズ(ピクセル単位)です。
 
color:uint (default = 0x000000) — テキストカラーです。例えば、 0xFF0000 は赤、 0x00FF00 は緑など、3 つの 8 bit の RGB コンポーネントを示す 16 進数です。
 
alpha:Number (default = 1.0) — エレメント形式に応じてすべての行アトムに適用される alpha プロパティです。
 
textRotation:String (default = "auto") — 個々の文字に適用される回転です。このプロパティには、TextRotation 定数を使用します。
 
dominantBaseline:String (default = "roman") — テキスト内の文字の吸着先である基準です。このプロパティには、TextBaseline 定数を使用します。
 
alignmentBaseline:String (default = "useDominantBaseline") — dominantBaseline の吸着先であるコンテンツ行に対する基準です。このプロパティには、TextBaseline 定数を使用します。
 
baselineShift:Number (default = 0.0) — テキストのベースラインシフト(ピクセル/em 単位)です。
 
kerning:String (default = "on") — このテキストに使用されるカーニングです。Kerning クラスで定義される定数を使用します。
 
trackingRight:Number (default = 0.0) — 各文字の右側に適用されるトラッキングまたは手動カーニング(ピクセル単位)です。
 
trackingLeft:Number (default = 0.0) — 各文字の左側に適用されるトラッキングまたは手動カーニング(ピクセル単位)です。
 
locale:String (default = "en") — テキストのロケールです。
 
breakOpportunity:String (default = "auto") — このテキストに適用される改行の条件です。 このプロパティには、BreakOpportunity 定数を使用します。
 
digitCase:String (default = "default") — このテキストに使用される数字の大文字小文字区別です。このプロパティには、DigitCase 定数を使用します。
 
digitWidth:String (default = "default") — このテキストに使用される数字の幅です。このプロパティには、DigitWidth 定数を使用します。
 
ligatureLevel:String (default = "common") — このテキストに使用される合字のレベルです。このプロパティには、LigatureLevel 定数を使用します。
 
typographicCase:String (default = "default") — このテキストに使用される文字の大文字小文字区別です。このプロパティには、TypographicCase 定数を使用します。

例外
ArgumentError — 指定された fontSize は、0 未満です。
 
ArgumentError — 指定された textRotation は、TextRotation のメンバーではありません。
 
ArgumentError — 指定された dominantBaseline は、TextBaseline のメンバーではありません。
 
ArgumentError — 指定された alignmentBaseline は、TextBaseline のメンバーではありません。
 
ArgumentError — 指定された kerning は、Kerning のメンバーではありません。
 
ArgumentError — 指定された breakOpportunity は、BreakOpportunity のメンバーではありません。
 
ArgumentError — 指定された digitCase は、DigitCase のメンバーではありません。
 
ArgumentError — 指定された digitWidth は、DigitWidth のメンバーではありません。
 
ArgumentError — 指定された ligatureLevel は、LigatureLevel のメンバーではありません。
 
ArgumentError — 指定された typographicCase は、TypographicCase のメンバーではありません。
メソッドの詳細

clone

()メソッド
public function clone():ElementFormat

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

ElementFormat のロックされていないクローンコピーを構築します。

戻り値
ElementFormatElementFormat オブジェクトのロックされていないコピーです。

例  ( この例の使用方法 )

この例では、ElementFormat オブジェクトを作成し、FontSize を設定します。新しい TextElementElementFormat を使用して作成されます(つまり、ロックされます)。この TextElementTextBlock のコンテンツとして使用されます。テキストの行が、TextBlock から作成されます。

ElementFormat オブジェクトを変更するには、その locked プロパティを最初にチェックします。 true である場合は、clone() メソッドを使用して ElementFormat のロックされていないコピーを作成します。次に、そのプロパティを変更し、新しく作成した ElementFormat オブジェクトを TextBlock に再リンクします。行が再改行されると、新しい行には新しいフォント設定が使用されます。

package {

    import flash.display.Sprite;
    import flash.text.engine.*;

    
    public class ElementFormat_cloneExample extends Sprite {
        private var ef1:ElementFormat;
        private var ef2:ElementFormat;
        
        public function ElementFormat_cloneExample():void {
            var fd:FontDescription = new FontDescription();
            fd.fontLookup = flash.text.engine.FontLookup.DEVICE;
            fd.fontName = "Palatino";

            var ef1:ElementFormat = new ElementFormat(fd);
            ef1.fontSize=20;
            
            var str:String = "This is flash text 0123456789";
            var tb:TextBlock = new TextBlock();
            var te1:TextElement = new TextElement(str, ef1);
            tb.content = te1;
            var line1:TextLine = tb.createTextLine(null, 600);
            addChild(line1);
            
            ef2 = (ef1.locked) ? ef1.clone() : ef1;    
            ef2.fontSize = 32;

            tb.content.elementFormat=ef2;
            var line2:TextLine = tb.createTextLine(null, 600);
            addChild(line2);
            
        }
    }    
}

getFontMetrics

()メソッド 
public function getFontMetrics():FontMetrics

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

fontDescription および fontSize で指定されるフォントの em ボックス、取り消し線位置、取り消し線太さ、下線位置および下線太さを記述するプロパティを持つ FontMetrics オブジェクトを返します。

戻り値
FontMetricsfontDescription で指定されるフォントのプロパティを記述する FontMetrics オブジェクトです。

関連する API エレメント


例  ( この例の使用方法 )

この例では、割り当てられた FontDescription を持つ ElementFormat オブジェクトを作成し、getFontMetrics メソッドを使用して、選択したフォントに対するメトリックを 24 ポイントで表示します。
package {

    import flash.display.Sprite;
    import flash.text.engine.*;

    
    public class FontMetricsExample extends Sprite {
        
        public function FontMetricsExample():void {
            var fd:FontDescription = new FontDescription();
            fd.fontName = "Garamond";
            fd.fontWeight = flash.text.engine.FontWeight.BOLD;

            var ef1:ElementFormat = new ElementFormat(fd);
            ef1.fontSize = 24;            
            var fm1:FontMetrics = ef1.getFontMetrics();

            trace(fm1.emBox);
            trace(fm1.strikethroughOffset);
            trace(fm1.strikethroughThickness);
            trace(fm1.subscriptScale);
            trace(fm1.subscriptOffset);
            trace(fm1.superscriptScale);
            trace(fm1.superscriptOffset);
            trace(fm1.underlineOffset);
            trace(fm1.underlineThickness);
            
            
        }
    }    
}
ElementFormatExample.as

この例では、2 つの ElementFormat オブジェクトを作成し、複数のプロパティを設定します。次に、新しい ElementFormats を TextElement オブジェクトに割り当てます。これは、TextBlock のコンテンツとして割り当てられています。TextElementElementFormat を変更しても、親 TextBlock によって作成済みの TextLine には影響しません。

package {

    import flash.display.Sprite;
    import flash.text.engine.*;

    
    public class ElementFormatExample extends Sprite {
        
        public function ElementFormatExample():void {
            var fd:FontDescription = new FontDescription();
            fd.fontName = "Garamond";
            fd.fontWeight = flash.text.engine.FontWeight.BOLD;

            var ef1:ElementFormat = new ElementFormat(fd);
            ef1.fontSize = 30;
            ef1.color = 0xFF0000;
            ef1.alpha = 100;
            ef1.kerning = flash.text.engine.Kerning.ON;
            ef1.trackingRight = 2;
            ef1.typographicCase = flash.text.engine.TypographicCase.UPPERCASE;
            ef1.alignmentBaseline = flash.text.engine.TextBaseline.DESCENT;
            ef1.ligatureLevel = flash.text.engine.LigatureLevel.EXOTIC;
            
            var ef2:ElementFormat = new ElementFormat(fd);
            ef2.fontSize = 30;
            ef2.color = 0xFF0000;
            ef2.alpha = 0.3;
            ef2.kerning = flash.text.engine.Kerning.OFF;
            ef2.typographicCase = flash.text.engine.TypographicCase.LOWERCASE;
            ef2.digitCase = flash.text.engine.DigitCase.OLD_STYLE;
            ef2.textRotation = flash.text.engine.TextRotation.ROTATE_180;
            
            var str:String = "This is flash text 0123456789";
            var tb:TextBlock = new TextBlock();
            var te1:TextElement = new TextElement(str, ef1);
            tb.content = te1;
            var line1:TextLine = tb.createTextLine(null, 600);
            addChild(line1);
            line1.x = 15;
            line1.y = 30;

            tb.content.elementFormat = ef2;
            var line2:TextLine = tb.createTextLine(null, 600);
            addChild(line2);
            line2.x = 15;
            line2.y = 60;
            
        }
    }    
}




[ X ]英語で表示される理由
ActionScript 3.0 リファレンスガイドのコンテンツが英語で表示されます。

ActionScript 3.0 リファレンスガイドのすべての部分がすべての言語に翻訳されているわけではありません。言語エレメントが翻訳されていない場合、そのエレメントは英語で表示されます。例えば、ga.controls.HelpBox クラスはどの言語にも訳されていません。このため、リファレンスガイドの日本語バージョンでは、ga.controls.HelpBox クラスは英語で表示されます。