Aspose::Page::XPS::Features::EventBasedModifications::PageAPI Class Reference

The Page element modification API. More...

Inherits Aspose::Page::XPS::Features::EventBasedModifications::IModificationAPI.

Public Member Functions

ASPOSE_PAGE_SHARED_API System::SharedPtr< DocumentUtilsget_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 >
Add (T element)
 Adds a content element (Canvas, Path, or Glyphs). More...
 
template<typename T >
Insert (int32_t index, T element)
 Inserts an element (Canvas, Path, or Glyphs) to the page at index position. More...
 
template<typename T >
Remove (T element)
 Removes an element from the page. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsContentElementRemoveAt (int32_t index)
 Removes an element at index position from the page. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvasCreateCanvas ()
 Creates a new canvas. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvasAddCanvas ()
 Adds a new canvas to the page. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsCanvasInsertCanvas (int32_t index)
 Inserts a new canvas to the page at index position. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathCreatePath (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometry > data)
 Creates a new path. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathAddPath (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::XpsPathInsertPath (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::XpsGlyphsCreateGlyphs (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::XpsGlyphsCreateGlyphs (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::XpsGlyphsAddGlyphs (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::XpsGlyphsInsertGlyphs (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::XpsGlyphsAddGlyphs (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::XpsGlyphsInsertGlyphs (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::XpsMatrixCreateMatrix (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::XpsPathGeometryCreatePathGeometry (System::String abbreviatedGeometry)
 Creates a new path geometry specified with abbreviated form. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometryCreatePathGeometry ()
 Creates a new path geometry. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathGeometryCreatePathGeometry (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::XpsPathFigureCreatePathFigure (System::Drawing::PointF startPoint, bool isClosed=false)
 Creates a new path figure. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigureCreatePathFigure (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::XpsArcSegmentCreateArcSegment (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::XpsPolyLineSegmentCreatePolyLineSegment (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::XpsPolyBezierSegmentCreatePolyBezierSegment (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::XpsPolyQuadraticBezierSegmentCreatePolyQuadraticBezierSegment (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::XpsSolidColorBrushCreateSolidColorBrush (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::XpsSolidColorBrushCreateSolidColorBrush (System::Drawing::Color color)
 Creates a new solid color brush. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsGradientStopCreateGradientStop (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::XpsGradientStopCreateGradientStop (System::Drawing::Color color, float offset)
 Creates a new gradient stop. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsLinearGradientBrushCreateLinearGradientBrush (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::XpsLinearGradientBrushCreateLinearGradientBrush (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::XpsRadialGradientBrushCreateRadialGradientBrush (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::XpsRadialGradientBrushCreateRadialGradientBrush (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::XpsVisualBrushCreateVisualBrush (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::XpsImageBrushCreateImageBrush (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::XpsImageBrushCreateImageBrush (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::XpsColorCreateColor (System::Drawing::Color color)
 Creates a new color. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsColorCreateColor (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::XpsColorCreateColor (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::XpsColorCreateColor (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::XpsColorCreateColor (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::XpsColorCreateColor (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::XpsColorCreateColor (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...
 
- Public Member Functions inherited from System::Object
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...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 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 TypeInfoGetType () 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

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
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 TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

The Page element modification API.

Constructor & Destructor Documentation

◆ PageAPI()

Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::PageAPI ( System::SharedPtr< XpsDocument document)
protected

Member Function Documentation

◆ Add()

template<typename T >
T Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::Add ( element)
inline

Adds a content element (Canvas, Path, or Glyphs).

Template Parameters
TThe type of the element.
Parameters
elementElement to be added.
Returns
Added element.

◆ AddCanvas()

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.

Returns
Added canvas.

.

◆ AddGlyphs() [1/2]

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 
)

Adds new glyphs to the page.

Parameters
fontFamilyFont family.
fontRenderingEmSizeFont size.
fontStyleFont style.
originXGlyphs origin X coordinate.
originYGlyphs origin Y coordinate.
unicodeStringString to be printed.
Returns
Added glyphs.

◆ AddGlyphs() [2/2]

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 
)

Adds new glyphs to the page.

Parameters
fontFont resource.
fontRenderingEmSizeFont size.
originXGlyphs origin X coordinate.
originYGlyphs origin Y coordinate.
unicodeStringString to be printed.
Returns
Added glyphs.

◆ AddOutlineEntry()

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.

Parameters
descriptionThe entry description.
outlineLevelThe outline level.
targetPageNumberThe target page number.

◆ AddPath()

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.

Parameters
dataThe geometry of the path.
Returns
Added path.

◆ CreateArcSegment()

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.

Parameters
pointThe endpoint of the elliptical arc.
sizeThe x and y radius of the elliptical arc as an x,y pair.
rotationAngleIndicates how the ellipse is rotated relative to the current coordinate system.
isLargeArcDetermines whether the arc is drawn with a sweep of 180 or greater.
sweepDirectionThe direction in which the arc is drawn.
isStrokedSpecifies whether the stroke for this segment of the path is drawn.
Returns
New elliptical arc segment.

◆ CreateCanvas()

ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsCanvas> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateCanvas ( )

Creates a new canvas.

Returns
New canvas.

◆ CreateColor() [1/7]

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.

Parameters
colorA native color instance for RGB color.
Returns
New color.

◆ CreateColor() [2/7]

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.

Parameters
aThe alpha color component.
rThe red color component.
gThe green color component.
bThe blue color component.
Returns
New color.

◆ CreateColor() [3/7]

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.

Parameters
rThe red color component.
gThe green color component.
bThe blue color component.
Returns
New color.

◆ CreateColor() [4/7]

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.

Parameters
aThe alpha color component.
rThe red color component.
gThe green color component.
bThe blue color component.
Returns
New color.

◆ CreateColor() [5/7]

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.

Parameters
rThe red color component.
gThe green color component.
bThe blue color component.
Returns
New color.

◆ CreateColor() [6/7]

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.

Parameters
pathThe path to the ICC profile.
componentsColor components.
Returns
New color.

◆ CreateColor() [7/7]

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.

Parameters
iccProfileThe ICC profile resource.
componentsColor components.
Returns
New color.

◆ CreateGlyphs() [1/2]

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 
)

Creates new glyphs.

Parameters
fontFamilyFont family.
fontRenderingEmSizeFont size.
fontStyleFont style.
originXGlyphs origin X coordinate.
originYGlyphs origin Y coordinate.
unicodeStringString to be printed.
Returns
New glyphs.

◆ CreateGlyphs() [2/2]

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 
)

Creates new glyphs.

Parameters
fontFont resource.
fontRenderingEmSizeFont size.
originXGlyphs origin X coordinate.
originYGlyphs origin Y coordinate.
unicodeStringString to be printed.
Returns
New glyphs.

◆ CreateGradientStop() [1/2]

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.

Parameters
colorThe gradient stop color.
offsetThe gradient offset.
Returns
New gradient stop.

◆ CreateGradientStop() [2/2]

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.

Parameters
colorThe gradient stop color.
offsetThe gradient offset.
Returns
New gradient stop.

◆ CreateImageBrush() [1/2]

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.

Parameters
imageAn image resource.
viewboxThe position and dimensions of the brush's source content.
viewportThe 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
Returns
New image brush.

◆ CreateImageBrush() [2/2]

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.

Parameters
imagePathThe path to the image to take as a brush tile.
viewboxThe position and dimensions of the brush's source content.
viewportThe 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
Returns
New image brush.

◆ CreateLinearGradientBrush() [1/2]

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.

Parameters
gradientStopsThe list of gradient stops.
startPointThe starting point of the linear gradient.
endPointThe end point of the linear gradient.
Returns
New linear gradient brush.

◆ CreateLinearGradientBrush() [2/2]

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.

Parameters
startPointThe starting point of the linear gradient.
endPointThe end point of the linear gradient.
Returns
New linear gradient brush.

◆ CreateMatrix()

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.

Parameters
m11Element 11.
m12Element 12.
m21Element 21.
m22Element 22.
m31Element 31.
m32Element 32.
Returns
New affine transformation matrix.

◆ CreatePath()

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.

Parameters
dataThe geometry of the path.
Returns
New path.

◆ CreatePathFigure() [1/2]

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.

Parameters
startPointThe starting point for the first segment of the path figure.
isClosedSpecifies 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.
Returns
New path figure.

◆ CreatePathFigure() [2/2]

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.

Parameters
startPointThe starting point for the first segment of the path figure.
segmentsList of path segments.
isClosedSpecifies 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.
Returns
New path figure.

◆ CreatePathGeometry() [1/3]

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.

Parameters
abbreviatedGeometryAbbreviated form of path geometry.
Returns
New path geometry.

◆ CreatePathGeometry() [2/3]

ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::XPS::XpsModel::XpsPathGeometry> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathGeometry ( )

Creates a new path geometry.

Returns
New path geometry.

.

◆ CreatePathGeometry() [3/3]

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.

Parameters
pathFiguresList of path figures.
Returns
New path geometry.

◆ CreatePolyBezierSegment()

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.

Parameters
pointsControl points for multiple Bézier segments.
isStrokedSpecifies whether the stroke for this segment of the path is drawn.
Returns
New cubic Bézier curves segment.

◆ CreatePolyLineSegment()

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.

Parameters
pointsA set of coordinates for the multiple segments that define the poly line segment.
isStrokedSpecifies whether the stroke for this segment of the path is drawn.
Returns
New polygonal drawing segment.

◆ CreatePolyQuadraticBezierSegment()

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.

Parameters
pointsControl points for multiple quadratic Bézier segments.
isStrokedSpecifies whether the stroke for this segment of the path is drawn.
Returns
New quadratic Bézier curves segment.

◆ CreateRadialGradientBrush() [1/2]

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.

Parameters
gradientStopsThe list of gradient stops.
centerThe center point of the radial gradient (that is, the center of the ellipse).
gradientOriginThe origin point of the radial gradient.
radiusXThe radius in the x dimension of the ellipse which defines the radial gradient.
radiusYThe radius in the y dimension of the ellipse which defines the radial gradient.
Returns
New radial gradient brush.

◆ CreateRadialGradientBrush() [2/2]

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.

Parameters
centerThe center point of the radial gradient (that is, the center of the ellipse).
gradientOriginThe origin point of the radial gradient.
radiusXThe radius in the x dimension of the ellipse which defines the radial gradient.
radiusYThe radius in the y dimension of the ellipse which defines the radial gradient.
Returns
New radial gradient brush.

◆ CreateSolidColorBrush() [1/2]

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.

Parameters
colorThe color for filled elements.
Returns
New solid color brush.

◆ CreateSolidColorBrush() [2/2]

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.

Parameters
colorThe color for filled elements.
Returns
New solid color brush.

◆ CreateVisualBrush()

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.

Parameters
elementThe XPS element (Canvas, Path or Glyphs) for Visual property od visual brush.
viewboxThe position and dimensions of the brush's source content.
viewportThe 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
Returns
New visual brush.

◆ get_Height()

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.

◆ get_PageCount()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::get_PageCount ( )

Returns the number of pages in the active document.

◆ get_TotalPageCount()

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.

◆ get_Utils()

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.

◆ get_Width()

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.

◆ Insert()

template<typename T >
T Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::Insert ( int32_t  index,
element 
)
inline

Inserts an element (Canvas, Path, or Glyphs) to the page at index position.

Template Parameters
TThe type of the element.
Parameters
indexPosition at which an element should be inserted.
elementElement to be inserted.
Returns
Inserted element.

◆ InsertCanvas()

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.

Parameters
indexPosition at which a new canvas should be inserted.
Returns
Inserted canvas.

◆ InsertGlyphs() [1/2]

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.

Parameters
indexPosition at which new glyphs should be inserted.
fontFamilyFont family.
fontSizeFont size.
fontStyleFont style.
originXGlyphs origin X coordinate.
originYGlyphs origin Y coordinate.
unicodeStringString to be printed.
Returns
Inserted glyphs.

◆ InsertGlyphs() [2/2]

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 
)

Inserts new glyphs to the page at index position.

Parameters
indexPosition at which new glyphs should be inserted.
fontFont resource.
fontSizeFont size.
originXGlyphs origin X coordinate.
originYGlyphs origin Y coordinate.
unicodeStringString to be printed.
Returns
Inserted glyphs.

◆ InsertPath()

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.

Parameters
indexPosition at which a new path should be inserted.
dataThe geometry of the path.
Returns
Inserted path.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( PageAPI  ,
CODEPORTING_ARGS(System::SharedPtr< XpsDocument > document)   
)
protected

◆ Remove()

template<typename T >
T Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::Remove ( element)
inline

Removes an element from the page.

Template Parameters
TThe type of the element.
Parameters
elementElement to be removed.
Returns
Removed element.

◆ RemoveAt()

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.

Parameters
indexPosition at which element should be removed.
Returns
Removed element.

◆ set_Height()

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.

◆ set_Width()

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.