The Wayback Machine - https://web.archive.org/web/20190121155134/http://www.cambridgesoft.com:80/services/documentation/sdk/chemdraw/cdx/properties/Justification.htm

Justification Property

CDXML Name:Justification
CDX Constant Name:kCDXProp_Justification
CDX Constant Value:0x0701
Data Size:INT8
Property of objects:kCDXObj_Text
First written/read in:ChemDraw 4.0
Required?No

Description:

The horizontal justification of a text object.

This property is considered obsolete starting with ChemDraw 7.0. Values stored in the kCDXProp_CaptionJustification and kCDXProp_LabelJustification properties are used preferentially, if present. ChemDraw will continue to write this property for backward-compatibility, however.

Only atom labels may have Automatic justification. In an Automatically-justified atom label, the atom is assumed to be associated with the first element in the label, reading from left to right. The rest of the label is positioned so that it best stays out of the way of any attached bonds, while trying to keep that first element at the atom's position. For atoms attached on the right end of a bond, this results in an atom label whose display is equivalent to Left, such as "CH3" or "OMe". For atoms attached on the left end of a bond, the atom label will be swapped, producing text such as "H3C" or "MeO". Accordingly, if you have an atom label that you know should always be displayed from left-to-right, you should definitely specify some justification other than Automatic.

This is an enumerated property. Acceptible values are shown in the following list:
Value CDXML Name Description
-1 Right Right justified text
0 Left Left justified text
1 Center Centered text
2 Full Fully justified text
3 Above Text is stacked above
4 Below Text is stacked below
5 Auto Text is automatically positioned
6 Best Text is positioned at creation-type in the alignment that best avoids any associated objects, but that alignment is fixed from that point onward

If this property is absent:

The value from the same property of a containing object will be used. That is, if this property is omitted from an object, but present for the Document, the Document's value will be used. If no value is found at all, ChemDraw will use the value from its last-used Style Sheet. If no information is found in the Style Sheet either, then atom labels are treated as automatically-justified, and non-atomlabel text is treated as left-justified.

 


CDX Documentation index