Aspose.Slides FOSS for Python
Properties
FOSS Aspose.Slides برای 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 | مجموعه ای از تمام اسلاید های طرح در ارائه را نشان می دهد. |
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. |
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 | این است که در سبک Dash Line قرار دارد. |
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 | متن به حالت Autofit می پردازد. |
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 | Represents collection of data points for a series. |
ChartDataWorkbook | دسترسی به دفتر کار Excel برای داده های نمودار را فراهم می کند. |
ChartDataWorksheet | یک ورق کار را در دفترچه کار نمودار داده ها نشان می دهد. |
ChartLinesFormat | ویژگی های شبکه را نشان می دهد. |
ChartPlotArea | Represents rectangle where chart should be plotted. |
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 | Represents a series data point label. |
DataLabelCollection | Represents the labels of a chart series. |
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 | نشان دهنده مجموعه ای از اشیاء 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 | این اندازه دارای ابعاد دو بعدی است که معادل 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 | اثر انتقال پرواز از طریق اسلاید. |
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)همچنین ببینید
- راهنمای توسعهدهنده: راهنماهای ویژگی با مثالهای کد
- راهنماهای نحوه انجام: مقالات کارمحور
- شروع کار: نصب و اولین اسکریپت