DataLabel
Vue de l’ensemble
‘DataLabel’ est une classe dans Aspose.Slides FOSS pour Python.Hérit de: ‘IData Label’.
Il représente une étiquette de point de données série.
Cette classe fournit 3 méthodes pour travailler avec les objets DataLabel dans les programmes Python. Les méthodologies disponibles comprennent: add_text_frame_for_overriding, get_actual_label_texte et hide. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Slides FOSS pour le package Pyton. Propriétés : actual-height , actual_width ; real_x; actuel_y : as_i_chart_component` .
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
chart | `` | Read | Gets the chart. |
slide | `` | Read | Gets the slide. |
presentation | `` | Read | Gets the presentation. |
is_visible | bool | Read | True when any show_* flag is set on this label or on the series default. |
data_label_format | 'IDataLabelFormat' | Read | Format of this specific label. |
text_format | 'IChartTextFormat' | Read | Chart text format. |
x | float | Read/Write | Gets or sets the x. |
y | float | Read/Write | Gets or sets the y. |
width | float | Read/Write | Gets or sets the width. |
height | float | Read/Write | Gets or sets the height. |
right | float | Read | Gets the right. |
bottom | float | Read | Gets the bottom. |
text_frame_for_overriding | 'ITextFrame' | Read | Overriding text frame for this label, or None. |
value_from_cell | 'IChartDataCell' | Read/Write | Workbook cell whose value is used as label text. |
as_i_chart_component | IChartComponent | Read | Allows to get base IChartComponent interface. |
as_i_slide_component | ISlideComponent | Read | Gets the as i slide component. |
as_i_presentation_component | IPresentationComponent | Read | Gets the as i presentation component. |
actual_x | float | Read | Specifies actual x location (left) of the chart element relative to the left top corner of the chart. |
actual_y | float | Read | Specifies actual top of the chart element relative to the left top corner of the chart. |
actual_width | float | Read | Specifies actual width of the chart element. |
actual_height | float | Read | Specifies actual height of the chart element. |
méthodes
| Signature | Description |
|---|---|
add_text_frame_for_overriding(text: str) → 'ITextFrame' | Create or replace the overriding text frame with initial text. |
get_actual_label_text() → str | Return the explicit override text when present, else empty string. |
hide() | Hide this label by setting <c:delete val=‘1’/>. |
Voir aussi
- Aspose.Slides - référence API d’entreprise