Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
496 commits
Select commit Hold shift + click to select a range
e900cdc
Add example: design-a-routine-that-extracts-all-shape-hyperlinks-and-…
agent-aspose-cells-examples May 19, 2026
ea20f62
Add example: programmatically-set-the-zorder-of-a-shape-based-on-its-…
agent-aspose-cells-examples May 19, 2026
a67215f
Add example: develop-a-process-to-ungroup-nested-shape-groups-recursi…
agent-aspose-cells-examples May 19, 2026
14cb37b
Add example: implement-error-handling-that-logs-a-warning-when-attemp…
agent-aspose-cells-examples May 19, 2026
e5fd65f
Add example: create-a-script-that-applies-a-uniform-glow-effect-to-ev…
agent-aspose-cells-examples May 19, 2026
644a548
Add example: develop-a-method-to-retrieve-and-display-absolute-positi…
agent-aspose-cells-examples May 19, 2026
55b08a2
Add example: implement-a-batch-operation-that-locks-all-shapes-on-eve…
agent-aspose-cells-examples May 19, 2026
8777aaa
Add example: write-code-to-set-a-pictures-anchor-to-a-merged-cell-ran…
agent-aspose-cells-examples May 19, 2026
0e89972
Add example: create-a-routine-that-reads-each-shapes-shadow-color-and…
agent-aspose-cells-examples May 19, 2026
2c8c98d
Add example: develop-a-feature-that-automatically-groups-shapes-added…
agent-aspose-cells-examples May 19, 2026
78f0cb5
Add example: write-a-function-that-calculates-the-distance-between-tw…
agent-aspose-cells-examples May 19, 2026
4c08db7
Add example: implement-a-process-to-copy-a-shapes-3d-format-settings-…
agent-aspose-cells-examples May 19, 2026
58b7695
Add example: create-a-validation-rule-that-ensures-every-shape-linked…
agent-aspose-cells-examples May 19, 2026
d3296ae
Add example: develop-a-script-that-iterates-through-all-shapes-unlock…
agent-aspose-cells-examples May 19, 2026
2be4074
Add example: write-code-to-apply-a-custom-reflection-gradient-to-a-pi…
agent-aspose-cells-examples May 19, 2026
ad82c53
Add example: implement-a-batch-copy-operation-that-transfers-all-draw…
agent-aspose-cells-examples May 19, 2026
e67896d
Add example: create-a-utility-that-lists-each-shapes-zorder-index-and…
agent-aspose-cells-examples May 19, 2026
f0c4c6f
Add example: write-a-routine-that-copies-a-chart-shape-changes-its-ti…
agent-aspose-cells-examples May 19, 2026
8615a3f
Add example: implement-a-feature-that-automatically-unlocks-all-shape…
agent-aspose-cells-examples May 19, 2026
c46b5c4
Add example: create-a-script-that-applies-a-uniform-shadow-offset-to-…
agent-aspose-cells-examples May 19, 2026
ba457bd
Add example: write-code-that-links-each-shape-to-its-corresponding-da…
agent-aspose-cells-examples May 19, 2026
21f36fd
Add example: load-an-excel-workbook-from-a-file-and-access-the-first-…
agent-aspose-cells-examples May 19, 2026
8228536
Add example: apply-a-50-transparent-reflection-to-the-selected-shape-…
agent-aspose-cells-examples May 19, 2026
57435b2
Add example: set-reflection-size-to-30-points-and-blur-radius-to-5-po…
agent-aspose-cells-examples May 19, 2026
96448b2
Add example: configure-shadow-effect-with-45-degree-angle-10-point-di…
agent-aspose-cells-examples May 19, 2026
c142f48
Add example: apply-an-outer-shadow-preset-and-set-its-transparency-to…
agent-aspose-cells-examples May 19, 2026
7e4fd87
Add example: define-a-blue-glow-effect-with-size-eight-points-on-all-…
agent-aspose-cells-examples May 19, 2026
c05ac92
Add example: read-the-current-glow-color-of-a-specific-shape-and-log-…
agent-aspose-cells-examples May 19, 2026
1bd982f
Add example: set-threedimensional-material-to-plastic-and-apply-light…
agent-aspose-cells-examples May 19, 2026
8af2e62
Add example: rotate-the-threedimensional-shape-by-thirty-degrees-arou…
agent-aspose-cells-examples May 19, 2026
095d559
Add example: tile-a-picture-file-as-texture-inside-a-rectangle-shape-…
agent-aspose-cells-examples May 19, 2026
7dd7137
Add example: send-the-shape-to-the-front-layer-to-adjust-zorder-posit…
agent-aspose-cells-examples May 19, 2026
844afe2
Add example: retrieve-all-connection-points-of-a-chart-shape-and-expo…
agent-aspose-cells-examples May 19, 2026
1cb9ad3
Add example: update-a-shapes-connection-point-offset-to-1020-and-pers…
agent-aspose-cells-examples May 19, 2026
add0bb5
Add example: apply-a-custom-reflection-preset-with-size-forty-blur-th…
agent-aspose-cells-examples May 19, 2026
9fa6eca
Add example: set-shadow-color-using-argb-values-25512800-and-transpar…
agent-aspose-cells-examples May 19, 2026
d614385
Add example: create-a-gradient-glow-transitioning-from-red-to-yellow-…
agent-aspose-cells-examples May 19, 2026
16035a0
Add example: apply-threedimensional-lighting-direction-top-and-set-sp…
agent-aspose-cells-examples May 19, 2026
b7ef26d
Add example: clone-a-shape-modify-its-reflection-and-place-the-clone-…
agent-aspose-cells-examples May 19, 2026
9a6d448
Add example: remove-the-shadow-effect-from-a-shape-while-preserving-i…
agent-aspose-cells-examples May 19, 2026
1685bb6
Add example: set-threedimensional-rotation-angles-x20-y45-z10-for-a-c…
agent-aspose-cells-examples May 19, 2026
5a1f83e
Add example: set-the-reflection-distance-to-twelve-points-and-verify-…
agent-aspose-cells-examples May 19, 2026
0a9736c
Add example: disable-all-shape-reflections-while-preserving-other-eff…
agent-aspose-cells-examples May 19, 2026
00fe31e
Add example: copy-reflection-settings-from-one-shape-to-another-withi…
agent-aspose-cells-examples May 19, 2026
cba05fc
Add example: toggle-the-visibility-of-the-glow-effect-on-a-specific-s…
agent-aspose-cells-examples May 19, 2026
94a41c7
Add example: remove-all-threedimensional-formatting-from-shapes-while…
agent-aspose-cells-examples May 19, 2026
13f8db0
Add example: load-an-excel-workbook-from-a-file-path-and-access-the-f…
agent-aspose-cells-examples May 19, 2026
783a406
Add example: retrieve-a-shape-by-its-name-from-the-worksheet-and-veri…
agent-aspose-cells-examples May 19, 2026
c90872f
Add example: assign-a-png-image-stream-to-the-shapes-filltexturefilli…
agent-aspose-cells-examples May 19, 2026
09358eb
Add example: enable-tiling-on-the-shape-by-setting-filltexturefillist…
agent-aspose-cells-examples May 19, 2026
ea3a5c9
Add example: save-the-modified-workbook-to-a-new-file-preserving-orig…
agent-aspose-cells-examples May 19, 2026
57b7437
Add example: iterate-through-all-shapes-in-the-worksheet-and-apply-ti…
agent-aspose-cells-examples May 19, 2026
17f32a1
Add example: load-an-image-from-a-url-and-use-it-as-texture-for-a-spe…
agent-aspose-cells-examples May 19, 2026
21f3158
Add example: create-a-new-text-box-shape-and-set-its-text-using-textb…
agent-aspose-cells-examples May 19, 2026
ea6a7b4
Add example: retrieve-the-fontsetting-object-from-a-shapes-textbody-t…
agent-aspose-cells-examples May 19, 2026
c3f36e3
Add example: set-character-spacing-to-5-points-on-the-shapes-text-via…
agent-aspose-cells-examples May 19, 2026
4449d25
Add example: apply-a-preset-shadow-of-type-outershadow-to-the-shapes-…
agent-aspose-cells-examples May 19, 2026
74c15df
Add example: change-the-shadow-preset-to-perspectivediagonalbottomlef…
agent-aspose-cells-examples May 19, 2026
e534e59
Add example: adjust-line-spacing-to-15-lines-within-the-shapes-text-u…
agent-aspose-cells-examples May 19, 2026
6a8b8f2
Add example: rotate-the-shapes-text-by-45-degrees-using-textoptionsro…
agent-aspose-cells-examples May 19, 2026
cf49ac5
Add example: validate-that-the-shapes-texture-image-file-exists-befor…
agent-aspose-cells-examples May 19, 2026
e5412c8
Add example: implement-error-handling-for-missing-image-files-when-se…
agent-aspose-cells-examples May 19, 2026
3ad7320
Add example: batch-process-multiple-workbooks-in-a-folder-adding-tile…
agent-aspose-cells-examples May 19, 2026
77e9a18
Add example: measure-performance-impact-of-enabling-texture-tiling-on…
agent-aspose-cells-examples May 19, 2026
1e4f765
Add example: compare-visual-quality-between-tiled-texture-and-stretch…
agent-aspose-cells-examples May 19, 2026
5a9b38c
Add example: use-presetshadowtypeinnershadow-to-create-a-subtle-inset…
agent-aspose-cells-examples May 19, 2026
3536123
Add example: apply-a-custom-character-spacing-of-2-points-to-compress…
agent-aspose-cells-examples May 19, 2026
98ff374
Add example: programmatically-duplicate-a-shape-and-assign-a-differen…
agent-aspose-cells-examples May 19, 2026
aea69aa
Add example: retrieve-the-current-shadow-preset-of-a-shapes-text-and-…
agent-aspose-cells-examples May 19, 2026
31ae22c
Add example: validate-that-character-spacing-values-remain-within-the…
agent-aspose-cells-examples May 19, 2026
3514bbf
Add example: create-a-unit-test-that-verifies-texture-tiling-is-appli…
agent-aspose-cells-examples May 19, 2026
30bf943
Add example: develop-a-helper-method-that-returns-a-fontsetting-confi…
agent-aspose-cells-examples May 19, 2026
acfe99e
Add example: iterate-over-all-text-boxes-in-a-worksheet-and-set-their…
agent-aspose-cells-examples May 19, 2026
02a9303
Add example: use-a-trycatch-block-to-handle-exceptions-when-loading-a…
agent-aspose-cells-examples May 19, 2026
d4c2028
Add example: create-a-macrolike-routine-that-toggles-texture-tiling-o…
agent-aspose-cells-examples May 19, 2026
6dcca13
Add example: apply-a-preset-shadow-of-type-outerbottom-to-shape-text-…
agent-aspose-cells-examples May 19, 2026
a3c6b55
Add example: read-shape-properties-into-a-json-object-for-external-re…
agent-aspose-cells-examples May 19, 2026
b9c2038
Add example: write-a-script-that-loads-a-workbook-from-a-url-applies-…
agent-aspose-cells-examples May 19, 2026
53c1c58
Add example: implement-a-feature-that-disables-texture-tiling-when-th…
agent-aspose-cells-examples May 19, 2026
095a743
Add example: create-a-custom-enumeration-mapping-between-presetshadow…
agent-aspose-cells-examples May 19, 2026
7fd979e
Add example: use-reflection-to-list-all-available-presetshadowtype-en…
agent-aspose-cells-examples May 19, 2026
1f01079
Add example: load-an-excel-workbook-and-locate-the-worksheet-containi…
agent-aspose-cells-examples May 19, 2026
441e778
Add example: access-the-shapes-textbody-and-obtain-the-shapetextalign…
agent-aspose-cells-examples May 19, 2026
522b0c0
Add example: set-linespacingpt-to-twelve-points-to-define-paragraph-l…
agent-aspose-cells-examples May 19, 2026
f7aacb4
Add example: assign-spacebeforept-three-points-to-add-spacing-before-…
agent-aspose-cells-examples May 19, 2026
26ea3ed
Add example: set-spaceafterpt-four-points-to-add-spacing-after-each-p…
agent-aspose-cells-examples May 19, 2026
efb5e91
Add example: adjust-topmarginpt-to-five-points-for-consistent-top-mar…
agent-aspose-cells-examples May 19, 2026
a9d61ae
Add example: set-leftmarginpt-to-eight-points-to-align-text-with-cell…
agent-aspose-cells-examples May 19, 2026
78bfd67
Add example: modify-bottommarginpt-to-two-points-to-prevent-text-clip…
agent-aspose-cells-examples May 19, 2026
9b66911
Add example: configure-rightmarginpt-to-ten-points-to-provide-space-f…
agent-aspose-cells-examples May 19, 2026
b058f6b
Add example: set-rotatetextwithshape-property-to-false-so-text-remain…
agent-aspose-cells-examples May 19, 2026
d775f1e
Add example: enable-rotatetextwithshape-property-to-true-to-rotate-te…
agent-aspose-cells-examples May 19, 2026
0758ed0
Add example: specify-fareastfontname-as-ms-mincho-and-latinfontname-a…
agent-aspose-cells-examples May 19, 2026
ec37087
Add example: change-latinfontname-to-calibri-while-keeping-fareastfon…
agent-aspose-cells-examples May 19, 2026
f494038
Add example: iterate-over-all-shapes-in-the-worksheet-and-apply-unifo…
agent-aspose-cells-examples May 19, 2026
c5b806e
Add example: filter-shapes-by-type-and-set-specific-margins-only-for-…
agent-aspose-cells-examples May 19, 2026
c0edbdf
Add example: create-a-utility-method-that-accepts-a-shape-and-applies…
agent-aspose-cells-examples May 19, 2026
44e20c7
Add example: batch-process-multiple-workbooks-updating-all-shape-text…
agent-aspose-cells-examples May 19, 2026
b7090fa
Add example: log-each-shapes-original-and-new-margin-settings-to-a-cs…
agent-aspose-cells-examples May 19, 2026
4f641d8
Add example: use-linq-to-select-shapes-with-rotatetextwithshape-set-t…
agent-aspose-cells-examples May 19, 2026
3899a1b
Add example: apply-character-spacing-of-12-points-to-all-text-within-…
agent-aspose-cells-examples May 19, 2026
1edbc81
Add example: set-text-alignment-to-center-horizontally-and-middle-ver…
agent-aspose-cells-examples May 19, 2026
eb51d51
Add example: reset-all-shape-text-formatting-properties-to-defaults-u…
agent-aspose-cells-examples May 19, 2026
e8b028c
Add example: use-shapetextalignment-object-to-read-current-line-spaci…
agent-aspose-cells-examples May 19, 2026
d821572
Add example: apply-a-custom-paragraph-style-by-setting-line-spacing-s…
agent-aspose-cells-examples May 19, 2026
c0c9c1e
Add example: adjust-character-spacing-together-with-line-spacing-to-a…
agent-aspose-cells-examples May 19, 2026
2b5c02e
Add example: verify-that-rotatetextwithshape-default-is-true-before-m…
agent-aspose-cells-examples May 19, 2026
76d6685
Add example: load-an-excel-workbook-from-a-file-stream-using-workbook…
agent-aspose-cells-examples May 19, 2026
2d24464
Add example: select-a-specific-worksheet-from-the-workbook-via-workbo…
agent-aspose-cells-examples May 19, 2026
650c562
Add example: retrieve-the-shapes-collection-of-the-selected-worksheet…
agent-aspose-cells-examples May 19, 2026
0db3434
Add example: iterate-through-each-shape-and-use-shapeissmartart-to-id…
agent-aspose-cells-examples May 19, 2026
3d32a52
Add example: filter-shapes-to-process-only-those-where-issmartart-ret…
agent-aspose-cells-examples May 19, 2026
87f8b79
Add example: convert-each-detected-smartart-shape-to-a-groupshape-usi…
agent-aspose-cells-examples May 19, 2026
0b9092b
Add example: cast-the-conversion-result-to-groupshape-and-verify-the-…
agent-aspose-cells-examples May 19, 2026
93a5578
Add example: enumerate-child-shapes-within-the-groupshape-to-access-i…
agent-aspose-cells-examples May 19, 2026
66920c0
Add example: read-the-text-property-of-each-child-shape-to-extract-ge…
agent-aspose-cells-examples May 19, 2026
9f888cc
Add example: concatenate-extracted-child-shape-texts-into-a-single-st…
agent-aspose-cells-examples May 19, 2026
ae3ac43
Add example: apply-multiple-adjustment-values-to-customize-the-smarta…
agent-aspose-cells-examples May 19, 2026
8b2cad0
Add example: refresh-the-linked-smartart-shape-after-updating-the-tar…
agent-aspose-cells-examples May 19, 2026
3fc17e6
Add example: save-the-modified-workbook-to-a-new-file-while-preservin…
agent-aspose-cells-examples May 19, 2026
cabb3dc
Add example: batch-process-a-directory-of-excel-files-converting-all-…
agent-aspose-cells-examples May 19, 2026
7046cf8
Add example: generate-a-report-listing-workbook-names-worksheet-title…
agent-aspose-cells-examples May 19, 2026
7906dcb
Add example: validate-that-each-smartart-conversion-returns-a-nonnull…
agent-aspose-cells-examples May 19, 2026
a639918
Add example: implement-error-handling-for-unsupported-smartart-types-…
agent-aspose-cells-examples May 19, 2026
deff1a5
Add example: measure-execution-time-of-smartart-detection-across-work…
agent-aspose-cells-examples May 19, 2026
03e2377
Add example: use-a-custom-predicate-to-select-smartart-shapes-whose-e…
agent-aspose-cells-examples May 19, 2026
d6de96f
Add example: log-detailed-information-for-each-smartart-shape-includi…
agent-aspose-cells-examples May 19, 2026
be8d794
Add example: programmatically-set-the-zorder-of-a-smartart-shape-to-b…
agent-aspose-cells-examples May 19, 2026
e991cfe
Add example: validate-that-shapeissmartart-returns-false-for-regular-…
agent-aspose-cells-examples May 19, 2026
660adeb
Add example: compare-the-number-of-adjustment-values-before-and-after…
agent-aspose-cells-examples May 19, 2026
4d9fefe
Add example: serialize-groupshape-properties-including-child-shapes-t…
agent-aspose-cells-examples May 19, 2026
2439e84
Add example: deserialize-saved-groupshape-json-and-reconstruct-the-sm…
agent-aspose-cells-examples May 19, 2026
93c2e6b
Add example: refresh-linked-shapes-after-workbook-save-to-ensure-posi…
agent-aspose-cells-examples May 19, 2026
178b630
Add example: load-an-xlsx-workbook-and-replace-smartart-text-in-all-s…
agent-aspose-cells-examples May 19, 2026
aaf80ab
Add example: identify-smartart-shapes-in-a-worksheet-and-list-their-n…
agent-aspose-cells-examples May 19, 2026
05f62ca
Add example: batch-replace-smartart-text-across-multiple-worksheets-w…
agent-aspose-cells-examples May 19, 2026
27497a3
Add example: validate-that-each-smartart-shape-contains-nonempty-text…
agent-aspose-cells-examples May 19, 2026
fbab3d3
Add example: export-the-workbook-with-modified-smartart-shapes-to-a-p…
agent-aspose-cells-examples May 19, 2026
fa9401a
Add example: access-nonprimitive-shape-data-and-extract-all-path-segm…
agent-aspose-cells-examples May 19, 2026
c64c389
Add example: serialize-extracted-shape-path-data-to-json-for-external…
agent-aspose-cells-examples May 19, 2026
ba75549
Add example: compare-shape-path-data-before-and-after-modification-to…
agent-aspose-cells-examples May 19, 2026
1708b98
Add example: adjust-geometry-of-a-rounded-rectangle-callout-by-settin…
agent-aspose-cells-examples May 19, 2026
c36704d
Add example: apply-custom-adjustment-values-to-a-collection-of-shapes…
agent-aspose-cells-examples May 19, 2026
b5d8f76
Add example: reset-all-shape-adjustment-values-to-their-default-setti…
agent-aspose-cells-examples May 19, 2026
fa48b6a
Add example: save-the-workbook-after-geometry-changes-to-an-xlsx-file…
agent-aspose-cells-examples May 19, 2026
b054dc6
Add example: refresh-linked-shapes-after-updating-their-source-cell-v…
agent-aspose-cells-examples May 19, 2026
f9699d2
Add example: update-a-cell-range-linked-to-a-picture-shape-and-then-r…
agent-aspose-cells-examples May 19, 2026
943f7e8
Add example: batch-update-linked-shapes-across-several-worksheets-to-…
agent-aspose-cells-examples May 19, 2026
11ea9ba
Add example: measure-performance-of-updateselectedvalue-on-a-large-wo…
agent-aspose-cells-examples May 19, 2026
c92f71e
Add example: log-each-shape-adjustment-change-to-a-text-file-for-audi…
agent-aspose-cells-examples May 19, 2026
03c31ee
Add example: write-a-unit-test-verifying-smartart-text-replacement-wo…
agent-aspose-cells-examples May 19, 2026
73f74e2
Add example: write-an-integration-test-confirming-linked-shape-refres…
agent-aspose-cells-examples May 19, 2026
663fc3f
Add example: load-a-workbook-from-a-memory-stream-modify-shapes-and-s…
agent-aspose-cells-examples May 19, 2026
dde37de
Add example: export-nonprimitive-shape-geometry-to-an-xml-file-for-ex…
agent-aspose-cells-examples May 19, 2026
651b7b3
Add example: compare-geometry-before-and-after-xml-import-to-ensure-c…
agent-aspose-cells-examples May 19, 2026
d7cc65f
Add example: use-specific-adjustment-indices-to-modify-the-tip-angle-…
agent-aspose-cells-examples May 19, 2026
c64e903
Add example: generate-a-report-listing-each-shapes-type-position-and-…
agent-aspose-cells-examples May 19, 2026
19ca824
Add example: filter-shapes-by-autoshapetype-and-process-only-those-ma…
agent-aspose-cells-examples May 19, 2026
bd06b32
Add example: update-a-linked-shape-after-changing-a-formula-in-the-so…
agent-aspose-cells-examples May 19, 2026
b2e6bac
Add example: verify-that-pdf-output-reflects-updated-linked-shape-ima…
agent-aspose-cells-examples May 19, 2026
e20c3ee
Add example: measure-file-size-differences-between-workbooks-before-a…
agent-aspose-cells-examples May 19, 2026
37fe418
Add example: create-a-workbook-add-a-rectangle-shape-and-link-it-to-c…
agent-aspose-cells-examples May 19, 2026
524dee9
Add example: update-a-linked-cell-value-and-refresh-the-shape-to-disp…
agent-aspose-cells-examples May 19, 2026
dbb83e2
Add example: link-a-shape-to-a-cell-with-a-date-formula-and-format-di…
agent-aspose-cells-examples May 19, 2026
3f5b75c
Add example: link-a-shape-to-a-cell-that-uses-the-concatenate-functio…
agent-aspose-cells-examples May 19, 2026
9356c8f
Add example: link-a-shape-to-a-cell-that-uses-the-text-function-for-n…
agent-aspose-cells-examples May 19, 2026
a3c728d
Add example: add-a-shape-link-it-to-a-cell-with-a-number-format-inclu…
agent-aspose-cells-examples May 19, 2026
e39b1ef
Add example: create-a-shape-link-it-to-a-cell-using-text-for-percenta…
agent-aspose-cells-examples May 19, 2026
2d698c3
Add example: add-a-shape-link-it-to-a-cell-with-a-custom-date-format-…
agent-aspose-cells-examples May 19, 2026
84d7327
Add example: create-a-shape-link-it-to-a-cell-using-text-for-scientif…
agent-aspose-cells-examples May 19, 2026
4b06c4b
Add example: link-a-shape-to-a-cell-containing-a-vlookup-formula-and-…
agent-aspose-cells-examples May 19, 2026
3e1f5c1
Add example: add-a-shape-link-it-to-a-cell-containing-an-if-statement…
agent-aspose-cells-examples May 19, 2026
6df058a
Add example: add-a-shape-link-it-to-a-cell-containing-a-nested-formul…
agent-aspose-cells-examples May 19, 2026
7831e25
Add example: add-a-shape-link-it-to-a-cell-containing-a-sum-formula-a…
agent-aspose-cells-examples May 19, 2026
623bcdd
Add example: add-a-shape-link-it-to-a-cell-using-replace-function-and…
agent-aspose-cells-examples May 19, 2026
a59a9fe
Add example: link-a-shape-to-a-cell-that-uses-the-substitute-function…
agent-aspose-cells-examples May 19, 2026
60e04cf
Add example: link-a-shape-to-a-cell-that-uses-the-char-function-to-di…
agent-aspose-cells-examples May 19, 2026
d782b9c
Add example: link-a-shape-to-a-cell-using-left-and-right-functions-to…
agent-aspose-cells-examples May 19, 2026
4701330
Add example: add-a-shape-set-its-linked-cell-to-a-cell-using-the-mid-…
agent-aspose-cells-examples May 19, 2026
ef39f22
Add example: add-a-shape-link-it-to-a-cell-using-value-to-convert-tex…
agent-aspose-cells-examples May 19, 2026
584a52a
Add example: link-a-shape-to-a-cell-containing-a-datevalue-function-a…
agent-aspose-cells-examples May 19, 2026
d6b3e04
Add example: link-a-shape-to-a-cell-using-textjoin-function-and-displ…
agent-aspose-cells-examples May 19, 2026
7f2ef39
Add example: link-a-shape-to-a-cell-using-the-concat-function-and-ver…
agent-aspose-cells-examples May 19, 2026
a5feb76
Add example: programmatically-change-a-shapes-linked-cell-from-a1-to-…
agent-aspose-cells-examples May 19, 2026
21448f3
Add example: create-a-shape-with-multi-line-text-link-it-to-a-cell-co…
agent-aspose-cells-examples May 19, 2026
5781a22
Add example: add-a-shape-link-it-to-a-cell-with-a-circular-reference-…
agent-aspose-cells-examples May 19, 2026
936dd00
Add example: programmatically-duplicate-a-shape-link-the-duplicate-to…
agent-aspose-cells-examples May 19, 2026
f264630
Add example: programmatically-move-a-shape-to-the-front-layer-using-a…
agent-aspose-cells-examples May 19, 2026
3c6c759
Add example: send-a-picture-shape-to-the-back-of-the-worksheet-by-cal…
agent-aspose-cells-examples May 19, 2026
4bfcf40
Add example: programmatically-move-a-shape-to-the-front-capture-its-z…
agent-aspose-cells-examples May 19, 2026
6aac595
Add example: programmatically-adjust-a-shapes-z-order-by-adding-five-…
agent-aspose-cells-examples May 19, 2026
b52e079
Add example: programmatically-adjust-a-shapes-z-order-by-subtracting-…
agent-aspose-cells-examples May 19, 2026
ec2ade2
Add example: programmatically-set-a-shapes-z-order-to-zero-and-verify…
agent-aspose-cells-examples May 19, 2026
d55a3b6
Add example: create-a-shape-set-its-z-order-using-a-large-positive-in…
agent-aspose-cells-examples May 19, 2026
9a59c0f
Add example: create-a-shape-set-its-z-order-to-a-specific-negative-va…
agent-aspose-cells-examples May 19, 2026
91d715a
Add example: programmatically-set-a-shapes-z-order-to-a-specific-posi…
agent-aspose-cells-examples May 19, 2026
1577ad7
Add example: create-multiple-shapes-assign-each-a-different-z-order-v…
agent-aspose-cells-examples May 19, 2026
45bd501
Add example: create-a-shape-set-its-z-order-to-zero-then-incrementall…
agent-aspose-cells-examples May 19, 2026
3c21f0c
Add example: retrieve-all-connection-points-of-a-connector-shape-and-…
agent-aspose-cells-examples May 19, 2026
5c0db92
Add example: retrieve-connection-points-of-a-shape-filter-points-with…
agent-aspose-cells-examples May 19, 2026
063e6e0
Add example: programmatically-read-connection-points-of-a-shape-ident…
agent-aspose-cells-examples May 19, 2026
1b9eea6
Add example: iterate-through-a-shapes-connectionpoints-collection-to-…
agent-aspose-cells-examples May 19, 2026
9078466
Add example: programmatically-read-a-shapes-connection-points-calcula…
agent-aspose-cells-examples May 19, 2026
1b3e3c4
Add example: programmatically-retrieve-connection-points-of-a-shape-c…
agent-aspose-cells-examples May 19, 2026
74ef386
Add example: add-a-shape-retrieve-its-connection-points-and-compare-t…
agent-aspose-cells-examples May 19, 2026
bce7145
Add example: add-a-shape-retrieve-its-connection-points-and-export-th…
agent-aspose-cells-examples May 19, 2026
05da199
Add example: add-a-shape-retrieve-its-connection-points-and-generate-…
agent-aspose-cells-examples May 19, 2026
bed1657
Add example: programmatically-retrieve-connection-points-of-a-shape-f…
agent-aspose-cells-examples May 19, 2026
6df34f9
Add example: add-a-shape-retrieve-its-connection-points-and-compare-t…
agent-aspose-cells-examples May 19, 2026
df9ef81
Add example: obtain-the-absolute-pixel-position-of-a-grouped-shape-an…
agent-aspose-cells-examples May 19, 2026
49a76af
Add example: place-a-shape-over-a-merged-cell-range-and-verify-its-ab…
agent-aspose-cells-examples May 19, 2026
64cf19f
Add example: retrieve-a-shapes-absolute-position-then-align-another-s…
agent-aspose-cells-examples May 19, 2026
3d5405b
Add example: calculate-the-pixel-offset-between-two-shapes-using-thei…
agent-aspose-cells-examples May 19, 2026
46ac5df
Add example: retrieve-a-shapes-absolute-position-convert-pixels-to-ce…
agent-aspose-cells-examples May 19, 2026
7b997ec
Add example: retrieve-absolute-positions-of-all-shapes-on-a-worksheet…
agent-aspose-cells-examples May 19, 2026
098122f
Add example: retrieve-a-shapes-absolute-position-convert-pixels-to-po…
agent-aspose-cells-examples May 19, 2026
c69c32d
Add example: set-a-shapes-absolute-position-based-on-column-width-and…
agent-aspose-cells-examples May 19, 2026
a0f8219
Add example: set-a-shapes-absolute-position-using-pixel-values-derive…
agent-aspose-cells-examples May 19, 2026
0146592
Add example: retrieve-a-shapes-absolute-position-add-a-margin-offset-…
agent-aspose-cells-examples May 19, 2026
5fa8fa0
Add example: programmatically-read-a-shapes-absolute-position-convert…
agent-aspose-cells-examples May 19, 2026
5e8e6ae
Add example: programmatically-retrieve-a-shapes-absolute-position-add…
agent-aspose-cells-examples May 19, 2026
9f177dd
Add example: retrieve-a-shapes-absolute-position-and-compare-with-exp…
agent-aspose-cells-examples May 19, 2026
3328efa
Add example: create-a-shape-set-its-absolute-position-to-align-with-a…
agent-aspose-cells-examples May 19, 2026
50bba3c
Add example: add-a-shape-set-its-absolute-position-based-on-column-in…
agent-aspose-cells-examples May 19, 2026
d6d24fb
Add example: create-a-shape-set-its-absolute-position-using-pixel-val…
agent-aspose-cells-examples May 19, 2026
4006dc7
Add example: programmatically-move-a-shape-to-the-back-layer-then-adj…
agent-aspose-cells-examples May 19, 2026
d9bfb8f
Add example: add-a-shape-set-its-linked-cell-to-a-cell-with-a-text-fo…
agent-aspose-cells-examples May 19, 2026
9b3758f
Add example: add-a-shape-link-it-to-a-cell-using-text-for-custom-date…
agent-aspose-cells-examples May 19, 2026
bb02de0
Add example: programmatically-move-a-shape-to-the-front-capture-its-z…
agent-aspose-cells-examples May 19, 2026
7e53e9b
Add example: programmatically-move-a-shape-to-the-front-then-to-the-b…
agent-aspose-cells-examples May 19, 2026
eae9ea0
Add example: filter-shapes-linked-to-cells-containing-errors-and-log-…
agent-aspose-cells-examples May 19, 2026
f3ba808
Add example: retrieve-absolute-positions-of-all-shapes-calculate-dist…
agent-aspose-cells-examples May 19, 2026
d641f80
Add example: add-a-shape-set-its-top-left-corner-to-specific-pixel-co…
agent-aspose-cells-examples May 19, 2026
3f8cb16
Add example: programmatically-duplicate-a-worksheet-copy-all-shapes-a…
agent-aspose-cells-examples May 19, 2026
a0322b2
Add example: link-a-shape-to-a-cell-that-references-an-external-workb…
agent-aspose-cells-examples May 19, 2026
9dbaef7
Add example: iterate-worksheets-add-a-shape-to-each-link-to-a-summary…
agent-aspose-cells-examples May 19, 2026
29e433b
Add example: programmatically-move-a-shape-behind-gridlines-retrieve-…
agent-aspose-cells-examples May 19, 2026
2b0fe9f
Add example: adjust-a-shapes-z-order-to-just-above-a-specific-existin…
agent-aspose-cells-examples May 19, 2026
503dfc8
Add example: add-a-shape-link-it-to-a-cell-with-a-custom-number-forma…
agent-aspose-cells-examples May 19, 2026
1b95405
Add example: programmatically-retrieve-all-shapes-sort-them-by-z-orde…
agent-aspose-cells-examples May 19, 2026
48e722b
Add example: add-a-shape-set-its-linked-cell-to-a-cell-with-custom-te…
agent-aspose-cells-examples May 19, 2026
e7bc0d6
Add example: add-a-shape-link-it-to-a-cell-using-text-for-custom-numb…
agent-aspose-cells-examples May 19, 2026
e33242d
Add example: add-a-shape-set-its-linked-cell-to-a-cell-with-a-custom-…
agent-aspose-cells-examples May 19, 2026
5685526
Add example: add-a-shape-link-it-to-a-cell-with-a-volatile-function-a…
agent-aspose-cells-examples May 19, 2026
b39e123
Add example: add-a-shape-link-it-to-a-cell-using-text-for-custom-numb…
agent-aspose-cells-examples May 19, 2026
3739634
Add example: add-a-shape-link-it-to-a-cell-using-text-for-number-form…
agent-aspose-cells-examples May 19, 2026
056b10a
Add example: add-a-shape-link-it-to-a-cell-using-text-for-number-form…
agent-aspose-cells-examples May 19, 2026
b684992
Add example: add-a-shape-link-it-to-a-cell-using-text-for-number-form…
agent-aspose-cells-examples May 19, 2026
0df148e
Update agents.md
agent-aspose-cells-examples May 31, 2026
a17693a
Resolve index.json merge conflicts with release/26.5.0
agent-aspose-cells-examples May 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,320 changes: 1,320 additions & 0 deletions index.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
using System;
using System.IO;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AsposeCellsFlowConnectorDemo
{
class Program
{
static void Main()
{
try
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];

// Add a straight line shape (used as a connector) to the worksheet
// Parameters: upper left row, upper left column, upper left pixel offset,
// lower right row, lower right column, lower right pixel offset
Shape flowConnector = worksheet.Shapes.AddLine(
2, 2, 0, // start at cell C3 (row 2, column 2)
5, 5, 0); // end at cell F6 (row 5, column 5)

// Retrieve the connection points of the shape
float[][] connectionPoints = flowConnector.GetConnectionPoints();

// Output the connection points for verification
Console.WriteLine("Connector Connection Points:");
for (int i = 0; i < connectionPoints.Length; i++)
{
Console.WriteLine($"Point {i + 1}: X = {connectionPoints[i][0]}, Y = {connectionPoints[i][1]}");
}

// Link the shape to a worksheet cell (example)
flowConnector.SetLinkedCell("$A$1", false, true);

// Save the workbook
string outputPath = "FlowConnectorDemo.xlsx";
workbook.Save(outputPath);
Console.WriteLine($"Workbook saved to {Path.GetFullPath(outputPath)}");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;

class ExtractShapePathPoints
{
static void Main()
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];

// Build a simple freeform shape (rectangle) using ShapePath commands
ShapePath shapePath = new ShapePath();
shapePath.MoveTo(10, 10);
shapePath.LineTo(200, 10);
shapePath.LineTo(200, 100);
shapePath.LineTo(10, 100);
shapePath.Close();

// Add the freeform shape to the worksheet
worksheet.Shapes.AddFreeform(1, 0, 1, 0, 300, 200, new ShapePath[] { shapePath });

// Retrieve the shape we just added (first shape in the collection)
Shape shape = worksheet.Shapes[0];

// Cast the shape's geometry to CustomGeometry to access path information
CustomGeometry geometry = shape.Geometry as CustomGeometry;
if (geometry != null)
{
// Iterate through each ShapePath in the geometry
for (int pathIndex = 0; pathIndex < geometry.Paths.Count; pathIndex++)
{
ShapePath path = geometry.Paths[pathIndex];

// Iterate through each segment in the current ShapePath
for (int segIndex = 0; segIndex < path.PathSegementList.Count; segIndex++)
{
ShapeSegmentPath segment = path.PathSegementList[segIndex];
Console.WriteLine($"Path {pathIndex}, Segment {segIndex}, Type: {segment.Type}, Points: {segment.Points.Count}");

// Iterate through all points in the current segment
for (int ptIndex = 0; ptIndex < segment.Points.Count; ptIndex++)
{
ShapePathPoint point = segment.Points[ptIndex];
// Use pixel coordinates for readability
Console.WriteLine($" Point {ptIndex}: X = {point.XPixel}, Y = {point.YPixel}");
}
}
}
}

// Save the workbook
workbook.Save("ExtractShapePathPoints.xlsx");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.ActiveXControls;

namespace AsposeCellsExamples
{
public class AccessActiveXControlDemo
{
public static void Run()
{
try
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];

// Add a CheckBox ActiveX control to the worksheet
Shape shape = worksheet.Shapes.AddActiveXControl(
ControlType.CheckBox, // type of control
1, // topRow index
0, // vertical offset in pixels
1, // leftColumn index
0, // horizontal offset in pixels
100, // width in pixels
30 // height in pixels
);

// Verify that the control was added
if (shape.ActiveXControl != null)
{
// Cast the generic ActiveXControl to its specific type
CheckBoxActiveXControl checkBox = (CheckBoxActiveXControl)shape.ActiveXControl;

// Access a property specific to CheckBoxActiveXControl
string fontName = checkBox.Font.Name;
Console.WriteLine($"CheckBox Font Name: {fontName}");

// Modify some properties of the CheckBox
checkBox.Caption = "Accept Terms";
checkBox.IsEnabled = true;
}

// Save the workbook to a file
string outputPath = "AccessActiveXControlDemo.xlsx";
workbook.Save(outputPath);
Console.WriteLine($"Workbook saved to {outputPath}");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}

// Entry point for the application
public class Program
{
public static void Main(string[] args)
{
AccessActiveXControlDemo.Run();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.Texts;

class Program
{
static void Main()
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];

// Add a rectangle shape to the worksheet
Shape shape = worksheet.Shapes.AddRectangle(1, 0, 1, 0, 100, 50);
shape.Text = "Sample Text";

// Access the ShapeTextAlignment object via the shape's TextBody
ShapeTextAlignment textAlignment = shape.TextBody.TextAlignment;

// Example formatting: enable text wrapping and set custom margins
textAlignment.IsTextWrapped = true;
textAlignment.TopMarginPt = 12.0;
textAlignment.BottomMarginPt = 12.0;
textAlignment.LeftMarginPt = 6.0;
textAlignment.RightMarginPt = 6.0;

// Save the workbook
workbook.Save("ShapeTextAlignmentDemo.xlsx");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;

class AddCheckBoxLinkedToCell
{
static void Main()
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];

// Add a CheckBox to the worksheet
// Parameters: upper left row, upper left column, height (pixels), width (pixels)
int checkBoxIndex = sheet.CheckBoxes.Add(5, 5, 20, 100);
CheckBox checkBox = sheet.CheckBoxes[checkBoxIndex];

// Set the display text of the CheckBox
checkBox.Text = "Accept Terms";

// Link the CheckBox state to cell B2
checkBox.LinkedCell = "B2";

// Optionally set the initial checked state
checkBox.Value = true;

// Save the workbook to a file
workbook.Save("CheckBoxLinked.xlsx");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System;
using System.Drawing;
using System.IO;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AddGlowToPictureApp
{
class AddGlowToPicture
{
static void Main()
{
try
{
// Create a new workbook
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];

string imagePath = "sampleImage.jpg";

// Ensure the image file exists before adding it
if (!File.Exists(imagePath))
{
Console.WriteLine($"Image file '{imagePath}' not found. Skipping picture insertion.");
}
else
{
// Add the picture to the worksheet
int pictureIndex = sheet.Pictures.Add(2, 2, imagePath);
Picture picture = sheet.Pictures[pictureIndex];

// Optional border for visibility
picture.BorderLineColor = Color.Black;
picture.BorderWeight = 1.0; // 1 pt

// Apply glow effect
GlowEffect glow = picture.Glow;
CellsColor glowColor = workbook.CreateCellsColor();
glowColor.Color = Color.FromArgb(255, 255, 0, 0); // Red glow
glow.Color = glowColor;
glow.Size = 12; // Glow radius in points
glow.Transparency = 0.3; // 30% transparent
}

// Save the workbook
workbook.Save("PictureWithGlow.xlsx");
Console.WriteLine("Workbook saved successfully.");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
using System;
using System.IO;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AddOleObjectWithHyperlinkDemo
{
class Program
{
static void Main()
{
try
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];

// Path to the source file that will be linked and opened via hyperlink
string sourceFilePath = "sample.docx";

// Ensure the source file exists before proceeding
if (!File.Exists(sourceFilePath))
{
Console.WriteLine($"Source file not found: {sourceFilePath}");
return;
}

// Read the file bytes to use as the OLE object's image (icon)
byte[] imageData = File.ReadAllBytes(sourceFilePath);

// Add a linked OLE object (topRow, leftColumn, height, width, imageData, linkedFile)
int oleIndex = sheet.OleObjects.Add(5, 2, 200, 300, imageData, sourceFilePath);

// Retrieve the added OleObject and mark it as a link
OleObject ole = sheet.OleObjects[oleIndex];
ole.IsLink = true;

// Set the hyperlink address (Hyperlink property is read‑only; modify its Address)
ole.Hyperlink.Address = sourceFilePath;

// Save the workbook
string outputPath = "OleObjectWithHyperlink.xlsx";
workbook.Save(outputPath);
Console.WriteLine($"Workbook saved to {outputPath}");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AsposeCellsHyperlinkExample
{
class Program
{
static void Main()
{
// Create a new workbook and get the first worksheet
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];

// Add a TextBox shape to the worksheet
// Parameters: upper left row, upper left column, top offset, left offset, width, height
TextBox textBox = sheet.Shapes.AddTextBox(2, 2, 10, 10, 200, 50);
textBox.Text = "Click here to visit Aspose";

// Add a hyperlink to the TextBox that opens a web page when clicked
textBox.AddHyperlink("https://www.aspose.com/");

// Save the workbook to a file
workbook.Save("TextBoxWithHyperlink.xlsx");
}
}
}
Loading