|
|
|
|
|
AnchorToContent (Property) In french: AncrageAuContenu
The AnchorToContent property determines and changes how the control adapts to its content.
STC_MyText.AnchorToContent = atcAdaptInHeight
STC_MyText = Product.Description
Syntax
Determining how the control adapts to its content Hide the details
<Result> = <Control used>.AnchorToContent
<Result>: Integer constant Adjustment mode currently used for the control:
| | atcAdaptInHeight | When the control content changes, it adapts to the new content vertically. | atcAdaptInWidth | When the control content changes, it adapts to the new content horizontally. | atcNone | When the control content changes, the control is not resized. |
<Control used>: Control name Name of the control to be used: Edit control, Static control, HTML Display control, Check box, Radio Button, Control Template.
Changing how the control adapts to its content Hide the details
<Control used>.AnchorToContent = <New adjustment mode>
<Control used>: Control name Name of the control to be used: Edit control, Static control, HTML Display control, Check box, Radio Button, Control Template. <New adjustment mode>: Integer constant New adjustment mode used for the control:
| | atcAdaptInHeight | When the control content changes, it adapts to the new content vertically. | atcAdaptInWidth | When the control content changes, it adapts to the new content horizontally. | atcNone | When the control content changes, the control is not resized. |
Remarks - If the control is anchored within a Layout control, the cell is enlarged so that the control fits based on its anchors.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|