xtd 0.2.0
Loading...
Searching...
No Matches
tab_page.h
Go to the documentation of this file.
1
4#pragma once
5#include "image_list.h"
6#include "panel.h"
7
9namespace xtd {
11 namespace forms {
31 class forms_export_ tab_page : public panel {
32 struct data;
33
34 public:
36
41
43 //~tab_page();
45
47
49 using panel::auto_scroll;
53 scrollable_control& auto_scroll(bool value) override;
54
60 virtual size_t image_index() const noexcept;
66 virtual tab_page& image_index(size_t value);
67
68 using panel::parent;
69 control& parent(const control& parent) override;
70 control& parent(std::nullptr_t) override;
71
72 using panel::text;
76 control& text(const xtd::ustring& text) override;
78
80
84 void destroy_handle() override;
86
88
90 static tab_page create();
94 static tab_page create(const drawing::point& location);
99 static tab_page create(const drawing::point& location, const drawing::size& size);
105 static tab_page create(const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
109 static tab_page create(const xtd::ustring& text);
114 static tab_page create(const xtd::ustring& text, const drawing::point& location);
120 static tab_page create(const xtd::ustring& text, const drawing::point& location, const drawing::size& size);
127 static tab_page create(const xtd::ustring& text, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
131 static tab_page create(const control& parent);
136 static tab_page create(const control& parent, const drawing::point& location);
142 static tab_page create(const control& parent, const drawing::point& location, const drawing::size& size);
149 static tab_page create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
154 static tab_page create(const control& parent, const xtd::ustring& text);
160 static tab_page create(const control& parent, const xtd::ustring& text, const drawing::point& location);
167 static tab_page create(const control& parent, const xtd::ustring& text, const drawing::point& location, const drawing::size& size);
175 static tab_page create(const control& parent, const xtd::ustring& text, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
177
178 protected:
180
182 forms::create_params create_params() const noexcept override;
184
186
192 std::unique_ptr<xtd::object> clone() const override;
193
194 void on_handle_created(const event_args& e) override;
196
197 private:
198 std::shared_ptr<data> data_;
199 };
200 }
201}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Encapsulates the information needed when creating a control.
Definition create_params.h:27
Used to group collections of controls.
Definition panel.h:30
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:20
Represents a single tab page in a tab_control.
Definition tab_page.h:31
virtual size_t image_index() const noexcept
Gets the image list index value of the image displayed on the tab_page control.
tab_page()
Initializes a new instance of the tab_page class.
scrollable_control & auto_scroll(bool value) override
Sets a value indicating whether the container enables the user to scroll to any controls placed outsi...
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define forms_export_
Define shared library export.
Definition forms_export.h:13
size_t size
Represents a size of any object in bytes.
Definition types.h:197
Contains xtd::forms::image_list component.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::panel class.