Shape — Aspose.Slides FOSS for C++ API Reference
Enumerations Shape class là lớp cơ sở cho tất cả các phần tử trực quan trên một slide. AutoShape kế thừa Shape với geometry và một tùy chọn TextFrame.
Enumerations: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/shape.h>
#include <Aspose/Slides/Foss/auto_shape.h>Enumerations: include/Aspose/Slides/Foss/shape.h, include/Aspose/Slides/Foss/auto_shape.h
Thuộc tính Shape
| Enumerations | Enumerations | Enumerations |
|---|---|---|
x() / set_x(double) | Read/Write | Vị trí X tính bằng points. |
y() / set_y(double) | Read/Write | Vị trí Y tính bằng points. |
width() / set_width(double) | Read/Write | Chiều rộng tính bằng points. |
height() / set_height(double) | Read/Write | Chiều cao tính bằng points. |
rotation() / set_rotation(double) | Read/Write | Góc quay tính bằng độ. |
hidden() / set_hidden(bool) | Read/Write | Cho biết hình dạng có bị ẩn hay không. |
shape_type() / set_shape_type(ShapeType) | Read/Write | Kiểu hình học của hình dạng. |
z_order_position() | Enumerations | Vị trí xếp chồng theo thứ tự Z. |
unique_id() | Enumerations | Mã định danh duy nhất cho hình dạng này. |
office_interop_shape_id() | Enumerations | ID hình dạng Office interop. |
is_grouped() | Enumerations | Liệu hình dạng có thuộc về một nhóm hay không. |
is_text_holder() | Enumerations | Liệu hình dạng có thể chứa văn bản hay không. |
is_decorative() / set_is_decorative(bool) | Đọc/Ghi | Liệu hình dạng có phải là trang trí (khả năng truy cập) hay không. |
connection_site_count() | Enumerations | Số lượng vị trí kết nối. |
set_name(const std::string&) | Enumerations | Đặt tên cho hình dạng. |
set_alternative_text(const std::string&) | Enumerations | Đặt văn bản thay thế cho khả năng truy cập. |
set_alternative_text_title(const std::string&) | Enumerations | Đặt tiêu đề văn bản thay thế. |
Thuộc tính Định dạng Shape
| Enumerations | Enumerations | Enumerations |
|---|---|---|
fill_format() | FillFormat& | Cài đặt tô màu cho hình dạng này. |
line_format() | LineFormat& | Cài đặt đường/kẻ viền. |
effect_format() | EffectFormat& | Cài đặt hiệu ứng hình ảnh. |
three_d_format() | ThreeDFormat& | 3-D effect settings. |
frame() | ShapeFrame | Khung vị trí và kích thước. |
AutoShape
AutoShape kế thừa từ GeometryShape (mà kế thừa từ Shape) và thêm một TextFrame.
| Enumerations | Enumerations | Enumerations |
|---|---|---|
text_frame() | Enumerations | Trả về the TextFrame cho hình dạng tự động này. |
geometry_shape() | Enumerations | Trả về các thuộc tính hình dạng hình học. |
Giao diện IShape
Enumerations IShape interface định nghĩa hợp đồng công khai. Các phương thức chính từ IShape:
| Enumerations | Enumerations |
|---|---|
set_raw_frame(const ShapeFrame&) | Đặt khung thô trực tiếp. |
set_frame(const ShapeFrame&) | Đặt khung đã tính toán. |