Aspose.Slides FOSS for Python
المعلومات العامة
Aspose.Slides FOSS لـ Python API منظم في 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 | يمثل مجموعة من جميع شرائح التخطيط في العرض التقديمي. |
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 | Determines which operations are disabled on the parent GroupShape. |
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 | Determines which operations are disabled on the parent 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. |
إحصاءات
| Enumeration | Description |
|---|---|
BackgroundType | يحدد مصدر ملء خلفية الشريحة. |
BevelPresetType | الثوابت التي تحدد الحافة ثلاثية الأبعاد للشكل. |
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 | Represents formatting options for 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 | يمثل مجموعة من كائنات خط الاتجاه لسلسلة الرسوم البيانية. |
| 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 | Represents a 2D point with float coordinates, equivalent to System.Drawing.PointF. |
Size | Represents a 2D size with integer dimensions, equivalent to System.Drawing.Size. |
SizeF | Represents a 2D size with float dimensions, equivalent to System.Drawing.SizeF. |
| Class | Description |
|---|---|
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 | تأثير الانتقال المنزلق عبر الطيران. |
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)انظر أيضاً
- دليل المطورين: أدلة الميزات مع أمثلة للشفرة
- أدلة على كيفية العمل: مقالات موجهة إلى المهام
- البدء: التثبيت والسيناريو الأول