To support the Auto Heightfunctionality in your custom editor, implement the IHeightAdaptable interface for its ViewInfo class and return the required height in its IHeightAdaptable.CalcHeight method. This example shows how to calculate the best height based on the editor's text. If your custom editor is more complex, you need to adapt this code to take your custom layout into account.
↧