xtd 0.2.0
Loading...
Searching...
No Matches
tab_page.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "image_list.hpp"
6#include "panel.hpp"
7
9namespace xtd {
11 namespace forms {
33 class forms_export_ tab_page : public panel {
34 struct data;
35
36 public:
38
43
45 //~tab_page();
47
49
51 using panel::auto_scroll;
55 scrollable_control& auto_scroll(bool value) override;
56
62 virtual size_t image_index() const noexcept;
68 virtual tab_page& image_index(size_t value);
69
70 using panel::parent;
71 control& parent(const control& parent) override;
72 control& parent(std::nullptr_t) override;
73
74 using panel::text;
78 control& text(const xtd::string& text) override;
80
82
86 void destroy_handle() override;
88
90
92 static tab_page create();
96 static tab_page create(const drawing::point& location);
101 static tab_page create(const drawing::point& location, const drawing::size& size);
107 static tab_page create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
111 static tab_page create(const xtd::string& text);
116 static tab_page create(const xtd::string& text, const drawing::point& location);
122 static tab_page create(const xtd::string& text, const drawing::point& location, const drawing::size& size);
129 static tab_page create(const xtd::string& text, const drawing::point& location, const drawing::size& size, const xtd::string& name);
133 static tab_page create(const control& parent);
138 static tab_page create(const control& parent, const drawing::point& location);
144 static tab_page create(const control& parent, const drawing::point& location, const drawing::size& size);
151 static tab_page create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
156 static tab_page create(const control& parent, const xtd::string& text);
162 static tab_page create(const control& parent, const xtd::string& text, const drawing::point& location);
169 static tab_page create(const control& parent, const xtd::string& text, const drawing::point& location, const drawing::size& size);
177 static tab_page create(const control& parent, const xtd::string& text, const drawing::point& location, const drawing::size& size, const xtd::string& name);
179
180 protected:
182
184 forms::create_params create_params() const noexcept override;
186
188
194 xtd::uptr<xtd::object> clone() const override;
195
196 void on_handle_created(const event_args& e) override;
198
199 private:
200 xtd::sptr<data> data_;
201 };
202 }
203}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Encapsulates the information needed when creating a control.
Definition create_params.hpp:29
Used to group collections of controls.
Definition panel.hpp:32
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.hpp:22
Represents a single tab page in a tab_control.
Definition tab_page.hpp:33
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...
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
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.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::style_sheets::panel class.