textAlignLast property
Specifies a value that indicates how to align the last line or only line of text in the specified object.
![]() ![]() |
Syntax
HRESULT value = object.put_textAlignLast( v);HRESULT value = object.get_textAlignLast(* p);
Property values
Type: BSTR
-
Default. Text is aligned like the other lines in the object, using the value of the IHTMLRuleStyle::textAlign property.
-
Text is centered.
-
Text is aligned like the text in the parent object.
-
Text is justified.
-
Text is aligned to the left.
-
Text is aligned to the right.
String format
auto | center | inherit | justify | left | right
CSS information
| Applies To | block containers |
|---|---|
| Media | visual |
| Inherited | true |
| Initial Value | auto |
Standards information
- CSS Text Level 3, Section 8.1
Remarks
Windows Internet Explorer 8. The property is an extension to Cascading Style Sheets (CSS), and can be used as a synonym for the property in IE8 Standards mode and higher.
The IHTMLStyle3::textAlignLast property is read-only for the IHTMLCurrentStyle2 interface.
Examples
The following example shows an embedded style rule that justifies all the lines in the document's p elements. This is commonly found in East Asian typography.
p.DistributeAllLines {
text-align: justify;
text-justify: distribute;
text-align-last: justify;
}
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows 2000 Server |
|
Header |
|
|
IDL |
|
|
DLL |
|

