The Page element modification API. More...
Inherits Aspose::Page::XPS::Features::EventBasedModifications::IModificationAPI.
Public Member Functions | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< DocumentUtils > | get_Utils () |
Gets the object that provides utilities beyond the formal XPS manipulation API. More... | |
ASPOSE_PAGE_SHARED_API int32_t | get_TotalPageCount () |
Returns the total number of pages in all documents inside XPS document. More... | |
ASPOSE_PAGE_SHARED_API int32_t | get_PageCount () |
Returns the number of pages in the active document. More... | |
ASPOSE_PAGE_SHARED_API float | get_Height () |
Returns/sets the height of the page, expressed as a real number in units of the effective coordinate space. More... | |
ASPOSE_PAGE_SHARED_API void | set_Height (float value) |
Returns/sets the height of the page, expressed as a real number in units of the effective coordinate space. More... | |
ASPOSE_PAGE_SHARED_API float | get_Width () |
Returns/sets the width of the page, expressed as a real number in units of the effective coordinate space. More... | |
ASPOSE_PAGE_SHARED_API void | set_Width (float value) |
Returns/sets the width of the page, expressed as a real number in units of the effective coordinate space. More... | |
template<typename T > | |
T | Add (T element) |
Adds a content element (Canvas, Path, or Glyphs). More... | |
template<typename T > | |
T | Insert (int32_t index, T element) |
Inserts an element (Canvas, Path, or Glyphs) to the page at index position. More... | |
template<typename T > | |
T | Remove (T element) |
Removes an element from the page. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsContentElement > | RemoveAt (int32_t index) |
Removes an element at index position from the page. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas > | CreateCanvas () |
Creates a new canvas. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas > | AddCanvas () |
Adds a new canvas to the page. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvas > | InsertCanvas (int32_t index) |
Inserts a new canvas to the page at index position. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath > | CreatePath (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > data) |
Creates a new path. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath > | AddPath (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > data) |
Adds a new path to the page. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPath > | InsertPath (int32_t index, System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > data) |
Inserts a new path to the page at index position. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > | CreateGlyphs (System::String fontFamily, float fontRenderingEmSize, System::Drawing::FontStyle fontStyle, float originX, float originY, System::String unicodeString) |
Creates new glyphs. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > | CreateGlyphs (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsFont > font, float fontRenderingEmSize, float originX, float originY, System::String unicodeString) |
Creates new glyphs. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > | AddGlyphs (System::String fontFamily, float fontRenderingEmSize, System::Drawing::FontStyle fontStyle, float originX, float originY, System::String unicodeString) |
Adds new glyphs to the page. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > | InsertGlyphs (int32_t index, System::String fontFamily, float fontSize, System::Drawing::FontStyle fontStyle, float originX, float originY, System::String unicodeString) |
Inserts new glyphs to the page at index position. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > | AddGlyphs (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsFont > font, float fontRenderingEmSize, float originX, float originY, System::String unicodeString) |
Adds new glyphs to the page. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGlyphs > | InsertGlyphs (int32_t index, System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsFont > font, float fontSize, float originX, float originY, System::String unicodeString) |
Inserts new glyphs to the page at index position. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsMatrix > | CreateMatrix (float m11, float m12, float m21, float m22, float m31, float m32) |
Creates a new affine transformation matrix. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > | CreatePathGeometry (System::String abbreviatedGeometry) |
Creates a new path geometry specified with abbreviated form. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > | CreatePathGeometry () |
Creates a new path geometry. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > | CreatePathGeometry (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure >>> pathFigures) |
Creates a new path geometry with specified list of path figures. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > | CreatePathFigure (System::Drawing::PointF startPoint, bool isClosed=false) |
Creates a new path figure. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > | CreatePathFigure (System::Drawing::PointF startPoint, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathSegment >>> segments, bool isClosed=false) |
Creates a new path figure. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsArcSegment > | CreateArcSegment (System::Drawing::PointF point, System::Drawing::SizeF size, float rotationAngle, bool isLargeArc, Aspose::Page::XPS::XpsModel::XpsSweepDirection sweepDirection, bool isStroked=true) |
Creates a new elliptical arc segment. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPolyLineSegment > | CreatePolyLineSegment (System::ArrayPtr< System::Drawing::PointF > points, bool isStroked=true) |
Creates a new polygonal drawing containing an arbitrary number of individual vertices. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPolyBezierSegment > | CreatePolyBezierSegment (System::ArrayPtr< System::Drawing::PointF > points, bool isStroked=true) |
Creates a new set of cubic Bézier curves. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPolyQuadraticBezierSegment > | CreatePolyQuadraticBezierSegment (System::ArrayPtr< System::Drawing::PointF > points, bool isStroked=true) |
Creates a new set of quadratic Bézier curves from the previous point in the path figure through a set of vertices, using specified control points. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsSolidColorBrush > | CreateSolidColorBrush (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > color) |
Creates a new solid color brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsSolidColorBrush > | CreateSolidColorBrush (System::Drawing::Color color) |
Creates a new solid color brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStop > | CreateGradientStop (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > color, float offset) |
Creates a new gradient stop. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStop > | CreateGradientStop (System::Drawing::Color color, float offset) |
Creates a new gradient stop. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsLinearGradientBrush > | CreateLinearGradientBrush (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStop >>> gradientStops, System::Drawing::PointF startPoint, System::Drawing::PointF endPoint) |
Creates a new linear gradient brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsLinearGradientBrush > | CreateLinearGradientBrush (System::Drawing::PointF startPoint, System::Drawing::PointF endPoint) |
Creates a new linear gradient brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsRadialGradientBrush > | CreateRadialGradientBrush (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStop >>> gradientStops, System::Drawing::PointF center, System::Drawing::PointF gradientOrigin, float radiusX, float radiusY) |
Creates a new radial gradient brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsRadialGradientBrush > | CreateRadialGradientBrush (System::Drawing::PointF center, System::Drawing::PointF gradientOrigin, float radiusX, float radiusY) |
Creates a new radial gradient brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsVisualBrush > | CreateVisualBrush (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsContentElement > element, System::Drawing::RectangleF viewbox, System::Drawing::RectangleF viewport) |
Creates a new visual brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsImageBrush > | CreateImageBrush (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsImage > image, System::Drawing::RectangleF viewbox, System::Drawing::RectangleF viewport) |
Creates a new image brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsImageBrush > | CreateImageBrush (System::String imagePath, System::Drawing::RectangleF viewbox, System::Drawing::RectangleF viewport) |
Creates a new image brush. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (System::Drawing::Color color) |
Creates a new color. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (int32_t a, int32_t r, int32_t g, int32_t b) |
Creates a new color in sRGB color space. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (int32_t r, int32_t g, int32_t b) |
Creates a new color in sRGB color space. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (float a, float r, float g, float b) |
Creates a new color in scRGB color space. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (float r, float g, float b) |
Creates a new color in scRGB color space. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (System::String path, const System::ArrayPtr< float > &components) |
Creates a new color in ICC based color space. More... | |
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | CreateColor (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsIccProfile > iccProfile, const System::ArrayPtr< float > &components) |
Creates a new color in ICC based color space. More... | |
ASPOSE_PAGE_SHARED_API void | AddOutlineEntry (System::String description, int32_t outlineLevel, int32_t targetPageNumber) |
Adds an outline entry to the document. More... | |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Protected Member Functions | |
PageAPI (System::SharedPtr< XpsDocument > document) | |
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (PageAPI, CODEPORTING_ARGS(System::SharedPtr< XpsDocument > document)) | |
Additional Inherited Members | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
![]() | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
The Page element modification API.
|
protected |
|
inline |
Adds a content element (Canvas, Path, or Glyphs).
T | The type of the element. |
element | Element to be added. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsCanvas> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::AddCanvas | ( | ) |
Adds a new canvas to the page.
.
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGlyphs> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::AddGlyphs | ( | System::String | fontFamily, |
float | fontRenderingEmSize, | ||
System::Drawing::FontStyle | fontStyle, | ||
float | originX, | ||
float | originY, | ||
System::String | unicodeString | ||
) |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGlyphs> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::AddGlyphs | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsFont > | font, |
float | fontRenderingEmSize, | ||
float | originX, | ||
float | originY, | ||
System::String | unicodeString | ||
) |
ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::AddOutlineEntry | ( | System::String | description, |
int32_t | outlineLevel, | ||
int32_t | targetPageNumber | ||
) |
Adds an outline entry to the document.
description | The entry description. |
outlineLevel | The outline level. |
targetPageNumber | The target page number. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPath> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::AddPath | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > | data | ) |
Adds a new path to the page.
data | The geometry of the path. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsArcSegment> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateArcSegment | ( | System::Drawing::PointF | point, |
System::Drawing::SizeF | size, | ||
float | rotationAngle, | ||
bool | isLargeArc, | ||
Aspose::Page::XPS::XpsModel::XpsSweepDirection | sweepDirection, | ||
bool | isStroked = true |
||
) |
Creates a new elliptical arc segment.
point | The endpoint of the elliptical arc. |
size | The x and y radius of the elliptical arc as an x,y pair. |
rotationAngle | Indicates how the ellipse is rotated relative to the current coordinate system. |
isLargeArc | Determines whether the arc is drawn with a sweep of 180 or greater. |
sweepDirection | The direction in which the arc is drawn. |
isStroked | Specifies whether the stroke for this segment of the path is drawn. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsCanvas> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateCanvas | ( | ) |
Creates a new canvas.
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | System::Drawing::Color | color | ) |
Creates a new color.
color | A native color instance for RGB color. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | int32_t | a, |
int32_t | r, | ||
int32_t | g, | ||
int32_t | b | ||
) |
Creates a new color in sRGB color space.
a | The alpha color component. |
r | The red color component. |
g | The green color component. |
b | The blue color component. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | int32_t | r, |
int32_t | g, | ||
int32_t | b | ||
) |
Creates a new color in sRGB color space.
r | The red color component. |
g | The green color component. |
b | The blue color component. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | float | a, |
float | r, | ||
float | g, | ||
float | b | ||
) |
Creates a new color in scRGB color space.
a | The alpha color component. |
r | The red color component. |
g | The green color component. |
b | The blue color component. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | float | r, |
float | g, | ||
float | b | ||
) |
Creates a new color in scRGB color space.
r | The red color component. |
g | The green color component. |
b | The blue color component. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | System::String | path, |
const System::ArrayPtr< float > & | components | ||
) |
Creates a new color in ICC based color space.
path | The path to the ICC profile. |
components | Color components. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateColor | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsIccProfile > | iccProfile, |
const System::ArrayPtr< float > & | components | ||
) |
Creates a new color in ICC based color space.
iccProfile | The ICC profile resource. |
components | Color components. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGlyphs> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateGlyphs | ( | System::String | fontFamily, |
float | fontRenderingEmSize, | ||
System::Drawing::FontStyle | fontStyle, | ||
float | originX, | ||
float | originY, | ||
System::String | unicodeString | ||
) |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGlyphs> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateGlyphs | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsFont > | font, |
float | fontRenderingEmSize, | ||
float | originX, | ||
float | originY, | ||
System::String | unicodeString | ||
) |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGradientStop> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateGradientStop | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | color, |
float | offset | ||
) |
Creates a new gradient stop.
color | The gradient stop color. |
offset | The gradient offset. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGradientStop> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateGradientStop | ( | System::Drawing::Color | color, |
float | offset | ||
) |
Creates a new gradient stop.
color | The gradient stop color. |
offset | The gradient offset. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsImageBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateImageBrush | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsImage > | image, |
System::Drawing::RectangleF | viewbox, | ||
System::Drawing::RectangleF | viewport | ||
) |
Creates a new image brush.
image | An image resource. |
viewbox | The position and dimensions of the brush's source content. |
viewport | The region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsImageBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateImageBrush | ( | System::String | imagePath, |
System::Drawing::RectangleF | viewbox, | ||
System::Drawing::RectangleF | viewport | ||
) |
Creates a new image brush.
imagePath | The path to the image to take as a brush tile. |
viewbox | The position and dimensions of the brush's source content. |
viewport | The region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsLinearGradientBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateLinearGradientBrush | ( | System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStop >>> | gradientStops, |
System::Drawing::PointF | startPoint, | ||
System::Drawing::PointF | endPoint | ||
) |
Creates a new linear gradient brush.
gradientStops | The list of gradient stops. |
startPoint | The starting point of the linear gradient. |
endPoint | The end point of the linear gradient. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsLinearGradientBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateLinearGradientBrush | ( | System::Drawing::PointF | startPoint, |
System::Drawing::PointF | endPoint | ||
) |
Creates a new linear gradient brush.
startPoint | The starting point of the linear gradient. |
endPoint | The end point of the linear gradient. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsMatrix> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateMatrix | ( | float | m11, |
float | m12, | ||
float | m21, | ||
float | m22, | ||
float | m31, | ||
float | m32 | ||
) |
Creates a new affine transformation matrix.
m11 | Element 11. |
m12 | Element 12. |
m21 | Element 21. |
m22 | Element 22. |
m31 | Element 31. |
m32 | Element 32. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPath> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePath | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > | data | ) |
Creates a new path.
data | The geometry of the path. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPathFigure> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathFigure | ( | System::Drawing::PointF | startPoint, |
bool | isClosed = false |
||
) |
Creates a new path figure.
startPoint | The starting point for the first segment of the path figure. |
isClosed | Specifies whether the path is closed. If set to true, the stroke is drawn "closed", that is, the last point in the last segment of the path figure is connected with the point specified in the StartPoint attribute, otherwise the stroke is drawn "open", and the last point is not connected to the start point. Only applicable if the path figure is used in a Path element that specifies a stroke. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPathFigure> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathFigure | ( | System::Drawing::PointF | startPoint, |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathSegment >>> | segments, | ||
bool | isClosed = false |
||
) |
Creates a new path figure.
startPoint | The starting point for the first segment of the path figure. |
segments | List of path segments. |
isClosed | Specifies whether the path is closed. If set to true, the stroke is drawn "closed", that is, the last point in the last segment of the path figure is connected with the point specified in the StartPoint attribute, otherwise the stroke is drawn "open", and the last point is not connected to the start point. Only applicable if the path figure is used in a Path element that specifies a stroke. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPathGeometry> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathGeometry | ( | System::String | abbreviatedGeometry | ) |
Creates a new path geometry specified with abbreviated form.
abbreviatedGeometry | Abbreviated form of path geometry. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPathGeometry> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathGeometry | ( | ) |
Creates a new path geometry.
.
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPathGeometry> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathGeometry | ( | System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure >>> | pathFigures | ) |
Creates a new path geometry with specified list of path figures.
pathFigures | List of path figures. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPolyBezierSegment> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePolyBezierSegment | ( | System::ArrayPtr< System::Drawing::PointF > | points, |
bool | isStroked = true |
||
) |
Creates a new set of cubic Bézier curves.
points | Control points for multiple Bézier segments. |
isStroked | Specifies whether the stroke for this segment of the path is drawn. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPolyLineSegment> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePolyLineSegment | ( | System::ArrayPtr< System::Drawing::PointF > | points, |
bool | isStroked = true |
||
) |
Creates a new polygonal drawing containing an arbitrary number of individual vertices.
points | A set of coordinates for the multiple segments that define the poly line segment. |
isStroked | Specifies whether the stroke for this segment of the path is drawn. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPolyQuadraticBezierSegment> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePolyQuadraticBezierSegment | ( | System::ArrayPtr< System::Drawing::PointF > | points, |
bool | isStroked = true |
||
) |
Creates a new set of quadratic Bézier curves from the previous point in the path figure through a set of vertices, using specified control points.
points | Control points for multiple quadratic Bézier segments. |
isStroked | Specifies whether the stroke for this segment of the path is drawn. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsRadialGradientBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateRadialGradientBrush | ( | System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStop >>> | gradientStops, |
System::Drawing::PointF | center, | ||
System::Drawing::PointF | gradientOrigin, | ||
float | radiusX, | ||
float | radiusY | ||
) |
Creates a new radial gradient brush.
gradientStops | The list of gradient stops. |
center | The center point of the radial gradient (that is, the center of the ellipse). |
gradientOrigin | The origin point of the radial gradient. |
radiusX | The radius in the x dimension of the ellipse which defines the radial gradient. |
radiusY | The radius in the y dimension of the ellipse which defines the radial gradient. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsRadialGradientBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateRadialGradientBrush | ( | System::Drawing::PointF | center, |
System::Drawing::PointF | gradientOrigin, | ||
float | radiusX, | ||
float | radiusY | ||
) |
Creates a new radial gradient brush.
center | The center point of the radial gradient (that is, the center of the ellipse). |
gradientOrigin | The origin point of the radial gradient. |
radiusX | The radius in the x dimension of the ellipse which defines the radial gradient. |
radiusY | The radius in the y dimension of the ellipse which defines the radial gradient. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsSolidColorBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateSolidColorBrush | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColor > | color | ) |
Creates a new solid color brush.
color | The color for filled elements. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsSolidColorBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateSolidColorBrush | ( | System::Drawing::Color | color | ) |
Creates a new solid color brush.
color | The color for filled elements. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsVisualBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateVisualBrush | ( | System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsContentElement > | element, |
System::Drawing::RectangleF | viewbox, | ||
System::Drawing::RectangleF | viewport | ||
) |
Creates a new visual brush.
element | The XPS element (Canvas, Path or Glyphs) for Visual property od visual brush. |
viewbox | The position and dimensions of the brush's source content. |
viewport | The region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied |
ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::get_Height | ( | ) |
Returns/sets the height of the page, expressed as a real number in units of the effective coordinate space.
ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::get_PageCount | ( | ) |
Returns the number of pages in the active document.
ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::get_TotalPageCount | ( | ) |
Returns the total number of pages in all documents inside XPS document.
ASPOSE_PAGE_SHARED_API System::SharedPtr<DocumentUtils> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::get_Utils | ( | ) |
Gets the object that provides utilities beyond the formal XPS manipulation API.
ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::get_Width | ( | ) |
Returns/sets the width of the page, expressed as a real number in units of the effective coordinate space.
|
inline |
Inserts an element (Canvas, Path, or Glyphs) to the page at index position.
T | The type of the element. |
index | Position at which an element should be inserted. |
element | Element to be inserted. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsCanvas> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::InsertCanvas | ( | int32_t | index | ) |
Inserts a new canvas to the page at index position.
index | Position at which a new canvas should be inserted. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGlyphs> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::InsertGlyphs | ( | int32_t | index, |
System::String | fontFamily, | ||
float | fontSize, | ||
System::Drawing::FontStyle | fontStyle, | ||
float | originX, | ||
float | originY, | ||
System::String | unicodeString | ||
) |
Inserts new glyphs to the page at index position.
index | Position at which new glyphs should be inserted. |
fontFamily | Font family. |
fontSize | Font size. |
fontStyle | Font style. |
originX | Glyphs origin X coordinate. |
originY | Glyphs origin Y coordinate. |
unicodeString | String to be printed. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsGlyphs> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::InsertGlyphs | ( | int32_t | index, |
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsFont > | font, | ||
float | fontSize, | ||
float | originX, | ||
float | originY, | ||
System::String | unicodeString | ||
) |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPath> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::InsertPath | ( | int32_t | index, |
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > | data | ||
) |
Inserts a new path to the page at index position.
index | Position at which a new path should be inserted. |
data | The geometry of the path. |
|
protected |
|
inline |
Removes an element from the page.
T | The type of the element. |
element | Element to be removed. |
ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsContentElement> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::RemoveAt | ( | int32_t | index | ) |
Removes an element at index position from the page.
index | Position at which element should be removed. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::set_Height | ( | float | value | ) |
Returns/sets the height of the page, expressed as a real number in units of the effective coordinate space.
ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::set_Width | ( | float | value | ) |
Returns/sets the width of the page, expressed as a real number in units of the effective coordinate space.