Version

CreateButtonElements Method

Used to position the EditorButtonBase instances in the EmbeddableEditorButtonBase collections.
Syntax
'Declaration
 
Protected Overridable Function CreateButtonElements( _
   ByRef workRect As Rectangle, _
   ByVal addButtonElements As Boolean, _
   ByVal displayStyle As EmbeddableElementDisplayStyle, _
   ByVal clientRect As Rectangle, _
   ByVal oldElements As UIElementsCollection _
) As ICollection

Parameters

workRect
Area available for positioning the buttons
addButtonElements
True to add the elements. False will cause the rect to be calculate but the buttons will not be added.
displayStyle
DisplayStyle for the buttons
clientRect
Area available in the editor for the client elements
oldElements
A collection of old uielements

Return Value

The remaining area available for positioning the remaining elements.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also