Method Prepend
Prepend(Control, int, SizerFlag, int)
Same as adding of the item, but prepends the items to the beginning of the list of items owned by this sizer.
ISizerItem Prepend(Control control, int proportion = 0, SizerFlag flag = SizerFlag.AlignLeft, int border = 0)
Parameters
control
ControlThe control to be added to the sizer. Its initial size (either set explicitly by the user or calculated internally when using default size) is interpreted as the minimal and in many cases also the initial size.
proportion
intUsed in IBoxSizer to indicate if a child of a sizer can change its size in the main orientation of the sizer - where 0 stands for not changeable and a value of more than zero is interpreted relative to the value of other children of the same sizer. For example, you might have a horizontal sizer with three children, two of which are supposed to change their size with the sizer. Then the two stretchable windows would get a value of 1 each to make them grow and shrink equally with the sizer's horizontal dimension.
flag
SizerFlagItem flags affecting sizer's behaviour..
border
intItem border. Determines the border width, if the flag parameter is set to include any border flag.
Returns
Prepend(ISizer, int, SizerFlag, int)
Same as adding of the item, but prepends the items to the beginning of the list of items owned by this sizer.
ISizerItem Prepend(ISizer sizer, int proportion = 0, SizerFlag flag = SizerFlag.AlignLeft, int border = 0)
Parameters
sizer
ISizerThe (child-)sizer to be added to the sizer. This allows placing a child sizer in a sizer and thus to create hierarchies of sizers (typically a vertical box as the top sizer and several horizontal boxes on the level beneath).
proportion
intUsed in IBoxSizer to indicate if a child of a sizer can change its size in the main orientation of the sizer - where 0 stands for not changeable and a value of more than zero is interpreted relative to the value of other children of the same sizer. For example, you might have a horizontal sizer with three children, two of which are supposed to change their size with the sizer. Then the two stretchable windows would get a value of 1 each to make them grow and shrink equally with the sizer's horizontal dimension.
flag
SizerFlagItem flags affecting sizer's behaviour..
border
intItem border. Determines the border width, if the flag parameter is set to include any border flag.
Returns
Prepend(int, int, int, SizerFlag, int)
Same as adding of the item, but prepends the items to the beginning of the list of items owned by this sizer.
ISizerItem Prepend(int width, int height, int proportion = 0, SizerFlag flag = SizerFlag.AlignLeft, int border = 0)
Parameters
width
intWidth of the spacer.
height
intHeight of the spacer.
proportion
intUsed in IBoxSizer to indicate if a child of a sizer can change its size in the main orientation of the sizer - where 0 stands for not changeable and a value of more than zero is interpreted relative to the value of other children of the same sizer. For example, you might have a horizontal sizer with three children, two of which are supposed to change their size with the sizer. Then the two stretchable windows would get a value of 1 each to make them grow and shrink equally with the sizer's horizontal dimension.
flag
SizerFlagItem flags affecting sizer's behaviour..
border
intItem border. Determines the border width, if the flag parameter is set to include any border flag.
Returns
Prepend(ISizerItem)
Inserts sizer item at the beginning of the items list.
ISizerItem Prepend(ISizerItem item)
Parameters
item
ISizerItemSizer item.
Returns
Prepend(Control, ISizerFlags)
Same as adding of the item, but prepends the items to the beginning of the list of items owned by this sizer.
ISizerItem Prepend(Control control, ISizerFlags sizerFlags)
Parameters
control
ControlThe control to be added to the sizer. Its initial size (either set explicitly by the user or calculated internally when using default size) is interpreted as the minimal and in many cases also the initial size.
sizerFlags
ISizerFlagsA ISizerFlags object that enables you to specify most of the other parameters more conveniently.
Returns
Prepend(ISizer, ISizerFlags)
Same as adding of the item, but prepends the items to the beginning of the list of items owned by this sizer.
ISizerItem Prepend(ISizer sizer, ISizerFlags sizerFlags)
Parameters
sizer
ISizerThe (child-)sizer to be added to the sizer. This allows placing a child sizer in a sizer and thus to create hierarchies of sizers (typically a vertical box as the top sizer and several horizontal boxes on the level beneath).
sizerFlags
ISizerFlagsA ISizerFlags object that enables you to specify most of the other parameters more conveniently.
Returns
Prepend(int, int, ISizerFlags)
Same as adding of the item, but prepends the items to the beginning of the list of items owned by this sizer.
ISizerItem Prepend(int width, int height, ISizerFlags sizerFlags)
Parameters
width
intWidth of the spacer.
height
intHeight of the spacer.
sizerFlags
ISizerFlagsA ISizerFlags object that enables you to specify most of the other parameters more conveniently.