Aspose.Slides FOSS for Python
Properties
ה-Aspose.Slides FOSS עבור API של Python מאורגן ב- aspose.slides_foss חבילה ותתי‑חבילותיה. כל המחלקות הציבוריות ממוקמות תחת aspose.slides_foss או אחד מתתי‑המודולים שלו.
import aspose.slides_foss as slides
from aspose.slides_foss.export import SaveFormat
from aspose.slides_foss import ShapeType, FillType, NullableBool
from aspose.slides_foss.drawing import Color, PointFמחלקות ליבה
| Class | Description |
|---|---|
AdjustValue | Represents a geometry shape’s adjustment value. |
AdjustValueCollection | Reprasents a collection of shape’s adjustments. |
AutoShape | Represents an AutoShape. |
Background | Represents background of a slide. |
BaseHandoutNotesSlideHeaderFooterManager | Class in the Slides PYTHON API. |
BasePortionFormat | תכונות פורמט טקסט משותף. |
BaseShapeLock | Class in the Slides PYTHON API. |
BaseSlide | מייצג נתונים נפוצים עבור כל סוג הסליד. |
BulletFormat | מייצג תכונות פורמט כדורים. |
Camera | Represents Camera. |
Cell | Represents a cell of a table. |
CellCollection | Represents a collection of cells. |
CellFormat | Represents format of a table cell. |
ColorFormat | Represents a color used in a presentation. |
Column | Represents a column in a table. |
ColumnCollection | Represents collection of columns in a table. |
Comment | Represents a comment on a slide. |
CommentAuthor | Represents an author of comments. |
CommentAuthorCollection | Represents a collection of comment authors. |
CommentCollection | Represents a collection of comments of one author. |
Connector | Represents a connector. |
DocumentProperties | Represents properties of a presentation. |
EffectFormat | הוא מייצג תכונות אפקט של צורה. |
FillFormat | מציג אפשרויות תוספת של פורמט. |
FontData | Represents a font definition. |
Fonts | Fonts collection. |
GeometryShape | Class with 1 method and 31 properties. |
GlobalLayoutSlideCollection | מייצג אוסף של כל ה-Layout Slides בהצגה. |
GradientFormat | Represent a gradient format. |
GradientStop | Represents a gradient format. |
GradientStopCollection | Represnts a collection of gradient stops. |
GraphicalObject | Class with 1 method and 29 properties. |
GraphicalObjectLock | Class extending BaseShapeLock. |
GroupShape | Represents a group of shapes on a slide. |
GroupShapeLock | קובע אילו פעולות מופעלות על קבוצת ההורים. |
HeadingPair | Represents a ‘Heading pair’ property of the document. |
Image | Represents a raster or vector image. |
ImageCollection | Represents collection of PPImage. |
Images | שיטות להתקדם ולפעול עם . |
LayoutSlide | Represents a layout slide. |
LayoutSlideCollection | מייצג כיתה בסיסית לאסוף של פסלים של הפריסה. |
LightRig | Represents LightRig. |
LineFillFormat | מתארת את התכונות של שורות מלאות. |
LineFormat | Represents format of a line. |
MasterLayoutSlideCollection | מייצג אוסף של כל הכתמים של הסליד המאסטר המוגדר. |
MasterSlide | Represents a master slide in a presentation. |
MasterSlideCollection | Represents a collection of master slides. |
NotesSize | Represents a size of notes slide. |
NotesSlide | Represents a notes slide in a presentation. |
NotesSlideHeaderFooterManager | מייצג מנהל שמחזיק התנהגות של הערות מגרד שחקנים, כולל שערים כותרת. |
NotesSlideManager | Notes slide manager. |
PPImage | Represents an image in a presentation. |
PVIObject | אספקה של תשתית שירות בסיסית עבור אובייקטים יכול להיות נושא של ירושה ערך נכס. |
Paragraph | Represents a paragraph of text. |
ParagraphCollection | Represents a collection of a paragraphs. |
ParagraphFormat | בכיתה זו יש את הנכסים של הפריסה. |
PatternFormat | Represents a pattern to fill a shape. |
Picture | Represents a picture in a presentation. |
PictureFillFormat | מציג תמונה מלא סגנון. |
PictureFrame | מייצג מסגרת עם תמונה בפנים. |
PictureFrameLock | קובע אילו פעולות מופעלות על PictureFrame המולדת. |
Portion | מייצג חלק של טקסט בתוך פרק טקס. |
PortionCollection | Represents a collection of portions. |
PortionFormat | שיעור זה מכיל את התכונות של עיצוב חלק טקסט. |
Presentation | Represents a Microsoft PowerPoint presentation. |
Row | Represents a row in a table. |
RowCollection | נציג אוסף שולחן שורה. |
Shape | Represents a shape on a slide. |
ShapeBevel | מכיל את המאפיינים של הקלה העיקרית של הפנים של הצורה. |
ShapeCollection | Represents a collection of shapes. |
ShapeFrame | Represents shape frame’s properties. |
Slide | Represents a slide in a presentation. |
SlideCollection | Represents a collection of a slides. |
Table | Represents a table on a slide. |
TableFormat | Represents format of a table. |
TextFrame | Represents a TextFrame. |
TextFrameFormat | Contains the TextFrame’s formatTextFrameFormatting properties. |
ThreeDFormat | Represents 3-D properties. |
Properties
| Enumeration | Description |
|---|---|
BackgroundType | הגדר את מקור המלאה של רקע הזין. |
BevelPresetType | קבועים שמגדירים את 3D bevel של צורה. |
BulletType | זהו סוג של כדורים מתרחבים. |
CameraPresetType | קבועים שמגדירים את סוג הקלטת המצלמה. |
ColorType | מייצגים צבעים שונים. |
FillBlendMode | Determines blend mode. |
FillType | הוא מגדיר את סוג המילוי הפנימי של אובייקטים חזותיים שונים. |
FontAlignment | מתאר את התואמות השורה העגולה. |
GradientDirection | הוא מייצג את הסגנון הגראדינט. |
GradientShape | הוא מייצג את צורת המלאה. |
LightRigPresetType | קבועים שמגדירים את סוגים של אור מראש. |
LightingDirection | קבועים שמגדירים כיוון אור. |
LineAlignment | מייצג את סוג ההסדר של הקווים. |
LineArrowheadLength | Represents the length of an arrowhead. |
LineArrowheadStyle | Represents the style of an arrowhead. |
LineArrowheadWidth | Represents the width of an arrowhead. |
LineCapStyle | הוא מייצג את סגנון הקוב. |
LineDashStyle | הוא מייצג את סגנון הדאש. |
LineJoinStyle | מייצגים את הקווים להצטרף לסגנון. |
LineStyle | Represents the style of a line. |
MaterialPresetType | קבועים שמגדירים חומר צורה. |
NullableBool | המציגים ערכים של בוליאנים משולשים. |
NumberedBulletStyle | זהו הסגנון של הכדורים המספריים. |
Orientation | Represents the orientation of a shape. |
PatternStyle | הוא מייצג את סגנון הדפוס. |
PictureFillMode | קובע כיצד התמונה תמלא את האזור. |
PresetColor | מייצג צבעים מוגדרים מראש. |
PresetShadowType | זהו תופעה של צל. |
RectangleAlignment | Defines 2-dimension allignment. |
SchemeColor | Represents colors in a color scheme. |
ShapeType | המייצגים את הגאומטריה של צורות גיאמטר. |
SlideLayoutType | זהו סוג של דירוג סליד. |
SourceFormat | מציין את פורמט הקובץ המקור. |
TableStylePreset | נציגים בונים סגנונות שולחן. |
TextAlignment | הם מייצגים סגנונות שונים של התאמה טקסט. |
TextAnchorType | תיבת טקסט תואמת בתוך אזור טקס. |
TextAutofitType | מצגת טקסט במצב אוטופי. |
TextCapType | זהו סוג של קפיטליזציה טקסט. |
TextShapeType | מצביע על צורת טקסט. |
TextStrikethroughType | הוא מייצג את סוג הטקסט באופן קפדני. |
TextUnderlineType | זה מייצג את סוג הטקסט המפורסם. |
TextVerticalType | קובע את מצב הכתיבה העגול עבור טקסט. |
TileFlip | הגדרת מצב הפליפ. |
תתי‑חבילות
| Class | Description |
|---|---|
AnimationTimeLine | Represents timeline of animation. |
Behavior | התנהגות של מדרגה בסיסית של השפעה. |
BehaviorCollection | הוא מייצג אוסף של השפעות התנהגות. |
BehaviorFactory | מפעל ליצירת מקרים של השפעת התנהגות. |
BehaviorProperty | מייצג סוגים של נכסים להתנהגות אנמיה. |
BehaviorPropertyCollection | הוא מייצג אוסף של תכונות התנהגות. |
ColorEffect | התנהגות השפעה של אפקט צבע. |
ColorOffset | Represent color offset. |
CommandEffect | תופעה של השפעת ההוראה. |
Effect | Represents animation effect. |
FilterEffect | תופעה של אפקט מסנן התנהגות אפקטיבי. |
MotionCmdPath | Represent one command of a path. |
MotionEffect | תנועת ההשפעה מייצגת את התנהגות ההפך. |
MotionPath | Represent motion path. |
Point | Represents animation point. |
PointCollection | Represents a collection of animation points. |
PropertyEffect | התנהגות של השפעה על ההשפעות. |
RotationEffect | תופעה זו מייצגת את התנהגות השפעת ההפוך. |
ScaleEffect | התנהגות השפעה מסוג אפקט. |
Sequence | Represents sequence (collection of effects). |
SequenceCollection | הוא מייצג אוסף של רגעים אינטראקטיביים. |
SetEffect | תופעה של התנהגות אפקט. |
TextAnimation | Represent text animation. |
TextAnimationCollection | מציג אוסף של אנמיות טקסט. |
Timing | Represents animation timing. |
| Enumeration | Description |
|---|---|
AfterAnimationType | מייצג את סוג האנימציה לאחר אפקט אנימציות. |
AnimateTextType | מייצג את סוג הטקסט האנימטי של אפקט אנימציה. |
BehaviorAccumulateType | הם מייצגים סוגים של אוסף של התנהגויות השפעה. |
BehaviorAdditiveType | מייצג סוג נוסף של התנהגות אפקט. |
BuildType | קובע כיצד הטקסט יופיע בצורת במהלך האנימציה. |
ColorDirection | מייצג כיוון צבע עבור התנהגות אפקט צבעים. |
ColorSpace | מייצג את החלל הצבעוני עבור התנהגות אפקט צבע. |
CommandEffectType | מייצג את סוג אפקט הפקודה עבור התנהגות אפקטיביות פקודות. |
EffectChartMajorGroupingType | מייצג את הסוג של אפקט אנימציה עבור האלמנט של הדפוס. |
EffectChartMinorGroupingType | מייצג את סוג אפקט האנימציה עבור פריט הדפוס בסדרה או קטגוריה. |
EffectFillType | Represent fill types. |
EffectPresetClassType | מייצגים את סוגים של אפקט. |
EffectRestartType | להציג את סוג ההפעלה מחדש עבור זמן. |
EffectSubtype | הם מייצגים תת-סוגים של אפקט אנימציה. |
EffectTriggerType | מייצג את סוג ההשפעה של המהיר. |
EffectType | זה מייצג את הסוג של אפקט אנימציה. |
FilterEffectRevealType | מסנן פיטר סוג התגלה. |
FilterEffectSubtype | מתארים את תת-סוג אפקט הפילטר. |
FilterEffectType | מתארים את סוג אפקט הפילטר. |
MotionCommandPathType | מייצג סוגים של פקודות עבור התנהגות תנועה אנמיה אפקט. |
MotionOriginType | הוא מפרט את מקורו של מסלול התנועה. |
MotionPathEditMode | Specifies how the motion path moves when the target shape is moved. |
MotionPathPointsType | מייצג סוגים של נקודות בדרכי תנועה אנמיה. |
PropertyCalcModeType | מייצג את מצב הקלק עבור נכס האנימציה. |
PropertyValueType | להציג את סוג הערך של הנכס. |
| Class | Description |
|---|---|
AxesManager | מספק גישה לאסיות תרשים. |
Axis | הוא מצטבר את האובייקט המייצג את החלק של תרשים. |
BaseChartValue | שיעור בסיס עבור סוגים של ערכים תרשים. |
Chart | Represents a chart on a slide. |
ChartCategory | Represents a chart category. |
ChartCategoryCollection | מציג אוסף של קטגוריות תרשים. |
ChartData | נתונים המשמשים לדירוג תרשימים. |
ChartDataCell | מייצג תא בספר העבודה של נתוני תרשים. |
ChartDataPoint | הוא מייצג נקודת נתונים סדרתית. |
ChartDataPointCollection | מייצג אוסף של נקודות נתונים עבור סדרה. |
ChartDataWorkbook | מספק גישה לספרי העבודה המובנים של Excel עבור נתוני תרשים. |
ChartDataWorksheet | מציג לוח עבודה בספר העבודה של נתונים תרשים. |
ChartLinesFormat | מייצג תכונות פורמט רשתות. |
ChartPlotArea | מייצג ישר שבו תרשים צריך להיות מוטבע. |
ChartPortionFormat | Chart portion formatting — wraps inside . |
ChartSeries | Represents a chart series. |
ChartSeriesCollection | מציג אוסף של סדרות תרשים. |
ChartSeriesGroup | Represents group of series. |
ChartSeriesGroupCollection | Collection of ChartSeriesGroup objects. |
ChartSeriesReadonlyCollection | צפייה בקלות של סדרת תרשים שייכת לקבוצה אחת. |
ChartTextFormat | מציין את הצורה הטקסט הנדרשת עבור רכיבי טקסט תרשים. |
ChartTitle | מציג תכונות כותרת תרשים. |
ChartWall | Represents walls on 3D charts. |
DataLabel | הוא מייצג תווית נקודת נתונים סדרתית. |
DataLabelCollection | מציג את התוויות של סדרת תרשים. |
DataLabelFormat | מציג אפשרויות פורמט עבור DataLabel. |
DataSourceTypeForErrorBarsCustomValues | Specifies types of values in ChartDataPoint.ErrorBarsCustomValues properties list. |
DataTable | מתארת את תכונות טבלת הנתונים. |
DoubleChartValue | מייצג ערך כפול תומך על ידי תא ספר עבודה או מילולי. |
ErrorBarsCustomValues | הגדר את ערכי שורת השגיאה עבור נקודת נתונים אחת. |
ErrorBarsFormat | מציג שורות שגיאה של סדרת תרשים. |
Format | Represents chart format properties (fill, line, effect, 3D). |
Legend | Represents chart’s legend properties. |
LegendEntryCollection | Collection of legend entries. |
LegendEntryProperties | מייצג את המאפיינים האגדיים של כניסת תרשים. |
Marker | Represents a chart marker (symbol at data points). |
Rotation3D | Represents 3D rotation of a chart. |
StringChartValue | מייצג ערך שורה תומך על ידי תא ספר עבודה או מילולי. |
StringOrDoubleChartValue | מייצג ערך שניתן להיות קווים או כפולים, תומכים בתא או בכתב. |
Trendline | Represents a trend line of a chart series. |
TrendlineCollection | מייצג אוסף של אובייקטים Trendline עבור סדרת תרשים. |
| Enumeration | Description |
|---|---|
AxisPositionType | Determines a position of axis. |
BubbleSizeRepresentationType | מציין את הדרכים האפשריות לייצג נתונים בגודל תרשים בלוטה. |
CategoryAxisType | Represents a type of a category axis. |
ChartDataSourceType | הוא מייצג סוג של מקור נתונים של תרשים. |
ChartType | Represents a type of chart. |
CombinableSeriesTypesGroup | רשימה של קבוצות של סוגים סדרתיים משולבים. |
CrossesType | קובע היכן יפרוץ המזרן. |
DataSourceType | Data source types. |
DisplayBlanksAsType | זה קובע כיצד נתונים חסרים יופיעו. |
DisplayUnitType | קובע את מספר הנתונים המוצגים. |
ErrorBarType | Represents type of error bar. |
ErrorBarValueType | Represents type of error bar value. |
LayoutTargetType | If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels). |
LegendDataLabelPosition | קובע את המיקום של תוויות נתונים. |
LegendPositionType | Determines a position of legend on a chart. |
MarkerStyleType | Determines form of marker on chart’s data point. |
PieSplitType | Represents a type of splitting points in the second pie or bar on a pie-of-pie or bar-of-pie chart. |
StyleType | Represents chart style. |
TickLabelPositionType | מייצג את סוג המיקום של תוויות סימן טריק על המזרן שנקבע. |
TickMarkType | מייצג את סוג הסימן של המפרט עבור המזרן שנקבע. |
TimeUnitType | Represents the base unit for the category axis. |
TrendlineType | Represents type of trend line. |
| Class | Description |
|---|---|
Color | Represents an ARGB color, equivalent to System.Drawing.Color. |
PointF | מייצג נקודה 2D עם קואורדינטים של שקיות, שווה ערך ל- System.Drawing.PointF. |
Size | הוא מייצג גודל 2D עם מימדים מלאים, שווה ערך ל- System.Drawing.Size. |
SizeF | הוא מייצג גודל 2D עם מימדים שטוחים, שווה ערך ל- System.Drawing.SizeF. |
| Class | Description |
|---|---|
Blur | מייצג אפקט Blur אשר מיושם על כל הצורה, כולל המילוי שלה. |
FillOverlay | Represents a Fill Overlay effect. |
Glow | מייצג אפקט גלוב, שבו מופיע צבע של צבעים מחוץ לקצה האובייקט. |
ImageTransformOperation | Class with 3 properties. |
InnerShadow | Represents a Inner Shadow effect. |
OuterShadow | Represents an Outer Shadow effect. |
PresetShadow | Represents a Preset Shadow effect. |
Reflection | Represents a Reflection effect. |
SoftEdge | יש לו אפקט רך. |
| Enumeration | Description |
|---|---|
SaveFormat | קבועים שמגדירים את פורמט ההצגה שנשמרה. |
| Class | Description |
|---|---|
CornerDirectionTransition | כיוון הכתף מסיר את אפקט המעבר. |
EightDirectionTransition | שמונה כיוונים להדביק את אפקט המעבר. |
EmptyTransition | אפקט מעבר ריק של סליד. |
FlyThroughTransition | אפקט מעבר Fly-through Slide. |
GlitterTransition | אפקט מעבר של גלייטר סליד. |
| Class | Description |
|---|---|
FillFormatCollection | מייצג את אוסף סגנונות המילוי. |
FormatScheme | שמור פורמטים מוגדרים בנושא עבור הצורות. |
LineFormatCollection | מייצג את אוסף סגנונות הקו. |
הפניה מהירה
import aspose.slides_foss as slides
from aspose.slides_foss import ShapeType, FillType, NullableBool
from aspose.slides_foss.drawing import Color
from aspose.slides_foss.export import SaveFormat
with slides.Presentation() as prs:
slide = prs.slides[0]
# Add shape with text
shape = slide.shapes.add_auto_shape(ShapeType.RECTANGLE, 50, 50, 400, 120)
tf = shape.add_text_frame("Slide content")
# Format the text
fmt = tf.paragraphs[0].portions[0].portion_format
fmt.font_height = 24
fmt.font_bold = NullableBool.TRUE
fmt.fill_format.fill_type = FillType.SOLID
fmt.fill_format.solid_fill_color.color = Color.from_argb(255, 0, 70, 127)
# Fill the shape
shape.fill_format.fill_type = FillType.SOLID
shape.fill_format.solid_fill_color.color = Color.from_argb(255, 230, 240, 255)
prs.save("demo.pptx", SaveFormat.PPTX)ראה גם
- מדריך למפתחים: מדריכים על תכונות עם דוגמאות קוד
- מדריכי איך לעשות: מאמרים ממוקדי משימה
- התחלה: התקנה וסקריפט ראשון