Classic grouped worksheet copy
Copy an existing typed drawing with its worksheet
The existing Sheets.AddCopy operation copies a qualified worksheet drawing into its newly created destination sheet, within the same workbook or across workbooks
The finite profile includes the admitted axis-aligned nested hierarchy, ordinary rectangle and textbox leaves, embedded picture frames and supported ungrouped leaves
Copying uses current typed text, styles and placement rather than replaying an earlier unedited drawing image; the copied hierarchy and wrappers have independent destination ownership
GroupCount, Groups, ParentGroup, ordered Children and the existing leaf-only Count/Items enumeration keep their established meanings
Existing operations and subsequent edits
- Open a qualified Classic XLS source and make supported typed text, fill, line or placement edits
- Call the destination workbook's Sheets.AddCopy with the source sheet; the Classic class API also accepts the existing destination-name argument
- Use the returned sheet and reacquire its typed groups and leaves for destination edits
- Save and reopen the destination workbook; an independently copied destination remains usable after the source workbook is released
Local coordinates, group coordinate domains and outer worksheet placement remain separate; finite selected-group insertion has its own CopyGroup methods, while general reparenting and group deletion remain outside these profiles
Images and text-run fonts
| Resource | Qualified behavior |
|---|---|
| Repeated images | Count each actual use while retaining one compatible destination catalog entry |
| Conflicting catalog indexes | Resolve by actual source image identity and compatible stored profile rather than copying an old numeric index |
| New images | Insert only distinct required resources, with destination identities and correct initial use counts |
| Non-frame image fill | Map the admitted simple fill image reference, including use alongside a picture frame |
| Text-run fonts | Migrate actual font values and preserve character offsets through destination font allocation and later save-time renumbering |
Cross-workbook indexed text colors require equal resolved source and destination colors; unsupported palette remapping refuses before destination-sheet creation, while automatic font color stays automatic
The finite image catalog admits at most 4095 entries and the font preflight conservatively bounds destination capacity; these admission checks do not promise constant memory for arbitrary object counts
Loaded default-column grid
Whole-sheet copying retains the actual loaded Classic default-column-width owner independently of the source workbook, including the original absence or raw value of an optional standard-width declaration
See StandardWidth save retention for unchanged assignments and explicit-edit behavior; general font/DPI measurement, transformed groups and alternate-cache appearance remain separate profiles
Known alternate DrawingML caches
A copied new typed shape omits its specifically admitted alternate OOXML shape cache, whose old identities, text and coordinates would otherwise refer to the source representation
Admission checks a bounded four-part ordinary rectangle/text cache with supported vocabulary and internal relationships; external bindings, unmodeled effects, hybrid raster dependencies and unknown reference-bearing owners refuse
Current typed geometry, explicit formatting, text and embedded image references determine the copied drawing; this does not promise arbitrary raw-record retention
Actual Excel saving reconstructs alternate caches with the current copied text and consistent internal shape identities; that observation does not establish pixel-level rendering equivalence
Effective fill and shape visibility
Fill.Visible and shape Visible resolve their independent local use/value flags, then an admitted document default; an unset local use flag inherits even when a raw local value is stored
The ordinary absent fill flag is on for 2-D shapes, and the absent hidden flag is off; picture frames use the same shape-visibility rule
Reading the value or assigning its current effective value leaves the local property table and workbook generation unchanged; a conflicting assignment establishes that override while retaining independent flags in the same scalar, including print settings and legacy picture flags
The raw OfficeArtOptions API continues to expose local storage; same-workbook copies retain that local representation
Cross-workbook whole-sheet and selected-group copies resolve each defined fill and shape Boolean flag independently and establish destination-owned values, so different destination defaults and later source destruction do not change those copied settings
The seven fill flags and shape Boolean family are represented; ignored local fill bits are retained, while unknown property owners, unresolved alternate tables and non-scalar references keep their existing preflight refusal
Qualification covers model edits, stored Boolean records, source-free save/reopen and exact named-stream file/stream output; it adds no native rendering, pixel, layout or arbitrary drawing-owner qualification
Preflight and publication boundaries
Unsupported owners, unknown workbook defaults, unresolved embedded images, invalid text-run fonts and unsupported palette dependencies refuse during preflight
The prepared drawing owns its typed models and structural skeleton independently; only immutable source ranges and image-source interfaces share lifetime-managed leases
Image catalog additions, hash membership, identity allocation and existing use-count deltas roll back if drawing publication fails; wrapper and temporary-owner allocations have explicit failure cleanup
The existing general AddCopy operation can still leave a newly created partial worksheet when a later unrelated allocation or copy step fails, and font-pool changes or reference bookkeeping can remain after such a failure
This increment provides drawing and image-resource ownership controls without adding whole-workbook transactional copying or a new concurrent-mutation guarantee
Representative acceptance
Final-source Win64 qualification uses 156 focused checks with one cold build and five guarded same-source reuses, including two corrected fixed-tree image-growth controls
Independent decoding covers twenty files and exact complete CFB stream bridges to the earlier source inputs actually inspected by Excel in 276 plus 89 checks; the final build does not add a new native or platform matrix
The native controls inspect text, four text-run font values, direct fill and line formatting, image availability and independently predicted nested geometry, with actual SaveAs and normal reopen
The earlier candidate wire review has 1372 checks, its native cache assessment has 40 checks and its independent review has 19752 checks; these binding counts are distinct from public execution assertions
With the same fixed tree, actual PNG payloads grow from 65433 to 4194514 bytes; final measurements are recorded separately from candidate measurements in the release qualification
Incremental Pascal allocations and the largest-request observations are measured controls, not process RSS or a universal arbitrary-tree memory bound
Flat connector references and worksheet copying
Ordinary Classic drawing save binds represented connector, start and end owners before assigning new shape identities, so a normally reopened flat drawing retains its intended references
A connector must resolve to one current shape; zero start or end identities remain valid free endpoints, while missing, duplicate or unknown solver references refuse before output publication
Sheets.AddCopy also copies a complete sealed flat drawing with represented connector rules through the existing structural snapshot copier, within a workbook or across workbooks
The copied shapes and connector endpoints belong to the destination sheet, including when that workbook already contains a drawing and the source workbook is subsequently released
Existing resource, property, font, palette and physical-owner admission limits remain; fresh unsealed closures, live fragments and unrepresented solver semantics do not gain general copying support
Final Win64 qualification has 109 focused checks and 2691 independent record checks, with seven complete candidate-to-final CFB stream bridges and an unchanged grouped-copy control; this increment adds no new native Excel or visual-appearance qualification
Primary document colors through ordinary shape reads
Version 2.384.397 corrects ordinary Classic fill and line color reads when the shape has no local primary value but the document supplies an admitted primary scalar default
The existing local primary value remains first for every previously readable color-property identifier; the new document fallback is limited to fill foreground/background and line foreground/background
Direct RGB and the represented scheme identities use the existing palette and automatic-color conversion; explicit local zero remains an override, and deleting the local override restores the admitted document default
Both RGB and SchemeColor read the same source property without creating a local option table, changing source generation or materializing a default into the source shape; the raw local OfficeArtOptions API remains unchanged
The OfficeArt property rules identify document-level defaults; a parent group's own shape properties are not treated as its child's document default chain
The qualified source and same-book copy retain local absence, while the established cross-book copier materializes its admitted ordinary defaults into the independent copied shape
Document-level F121/F122 records are retained as owning raw header/body ranges and streamed back through ordinary saving, source destruction, normal reopening and repeated saving
The document container definition assigns default semantics to primary and tertiary owners; a nonstandard secondary document record is preserved as opaque data without granting it default semantics
Before granting the new primary fallback, bounded local and document family-directory checks reject a same-property collision or invalid directory by retaining the existing zero/no-scheme fallback; this does not guess general cross-family precedence or add a getter exception
Retained unknown default families still refuse source or destination closure copying before publication; this read correction adds no unknown-family copying, reference remapping or extended ColorRef support
The integrated source passes 168 focused and 37103 independent checks, including clear/reload, local overrides, source and target copy refusals, four color consumers and persistent raw-family guards
Two ordinary compatibility outputs retain all six complete named CFB streams byte for byte against released395, and all 25 candidate/final output files retain their 75 complete named streams without exceptions
The genuine retained source has its earlier native observations, but this increment creates no new native window, appearance or pixel-parity qualification; broader property families, transforms, classes and catalog mapping remain separate work
Document-default line width and style
Version 2.384.400 extends ordinary Classic Line.Weight and Line.Style reads to supported document primary defaults when the shape has no local primary value
Weight remains expressed in points, including zero and the existing 1584-point upper bound; style admits the existing five represented line styles, and explicit local values retain their previous precedence
Assigning a value now compares with the effective inherited value: requesting 0.75 points against a document default of 2 points creates the necessary local override, while assigning the already effective value keeps local absence and remains a no-op under a read lease
The raw OfficeArtOptions interface remains local, and ordinary getters neither create a local property table nor inherit a parent group's own shape formatting
Supported same-workbook copying retains local absence; cross-workbook copying materializes the supported missing defaults into the independent copied shape so releasing the source does not change its effective width or style
Invalid, complex, referenced or conflicting document defaults keep their previous fallback or copy refusal; retained secondary and tertiary property families do not gain guessed precedence, and an unrelated target shape's local opaque data does not become a document-level conflict
Boolean use-bit inheritance, opacity, dash/cap dependencies, transforms and broader property families were separate work at that correction, which added no new native appearance or pixel-parity qualification; Boolean use-bit inheritance is qualified afterwards for the protection and picture words in Boolean property words inherited from workbook defaults, and dash and cap dependencies were qualified at 2.384.451
Boolean property words inherited from workbook defaults
Version 2.384.481 copies a grouped Classic drawing whose shape carries its own protection or picture Boolean property while the source workbook also declares a default for that same property, which previously refused before any destination state changed
Across workbooks the two values merge into one fully explicit property through the same strict use-bit resolution the fill, shadow and shape Boolean families already used, so the copy no longer depends on a workbook default table that no saved file carries, and each flag the shape did not specify keeps the value the source workbook declared
Within one workbook the admission is the same and the merge is not, because the copy shares a single document default table with its source and the shape's own value still resolves against the defaults it was authored against: the copied shape keeps its local word unchanged, a leaf that carried no value for the word keeps carrying none rather than receiving a cloned default, and no fully explicit word is materialized, which is the same-workbook retention this topic already states for the raw OfficeArtOptions interface, for fill and shape visibility, and for document-default line width and style
That the admission also reaches a copy staying inside one workbook follows from the source drawing group being validated whether or not the destination group differs, so before version 2.384.481 such a copy of a workbook declaring either default refused with the same guard; both words are qualified on that path by comparison against the prior release, and each copied leaf is compared by index against the same leaf read before the copy
The masks come from the primary specification rather than from the fixtures: the protection word has ten use bits and ten flags all defaulting to unset, and the picture word has seven of each, and both satisfy the same alignment the released resolver already assumes
The actual 3D object and style Boolean words are represented separately in the 2.384.512 metadata-copy profile; ambient intensity has its own finite scalar profile; other 3D scalar and color properties, transforms and native appearance retain their existing boundaries
Document-default dash patterns and cap-dependent dots
Version 2.384.401 extends ordinary Line.DashStyle reads to supported document preset and cap defaults when the corresponding local primary property is absent
The existing round-dot alias combines dotted preset 2 with round cap 0; other supported caps keep the non-round dotted interpretation, without merging document defaults into the raw local-property interface
Changing a round-dot line to a non-round style now writes an explicit flat cap only when deleting the local cap would reveal a qualified nonflat document cap; missing or already flat document defaults keep the ordinary local-cap deletion behavior
An equal effective assignment remains a no-op under a read lease; same-workbook copies retain local absence and independent cross-workbook copies retain supported preset and cap values after source release
The new document and copy profile covers simple presets 0 through 10 and caps 0 through 2, preserving the existing invalid, complex, referenced and opaque-family refusal boundaries
Repeated edited outputs retain their represented OfficeArt state, while an observed accumulation of unrelated BIFF settings remains separate serializer work; this does not claim whole-Workbook repeat byte identity
Boolean use bits, custom dash arrays, opacity, transformations and broader catalog semantics remain separate work, with no new native appearance or pixel qualification
Remaining drawing and theme boundaries
Selected-group insertion into an existing drawing has a qualified finite profile; whole-worksheet AddCopy refuses drawings with live inserted fragments until they are saved and normally reopened, while generalized connector and solver references, unknown reference-bearing owners, broader defaults, transformations and shape classes remain separate work
Cross-workbook copies use the destination theme; finite native Theme persistence now retains the admitted unchanged destination package, including its font and format schemes
The earlier separate native diagnostic used an in-memory theme intervention to isolate explicit copied content; the newer unchanged-package contract has its own source and native evidence, while arbitrary theme editing remains outside the copy profile
The original large-storage acceptance in compound storage is complete within its preserved source and wide-offset evidence; separately authorized drawing topology, master, 3D and appearance work remains active
Source-effective line visibility when copying drawings
The historical411 local-only interpretation and source-copy fidelity claim were not qualified: an actual source TextLeaf was visible while its new whole and selected copied lines were hidden
The finite412 correction follows represented local and document use flags, uses the standard visible default only after proving absence, and materializes the known source-effective value across owners
See the corrected final-source consumer domain for the two exact public-copy products and the retained alternate-cache conflict
Source-effective line visibility
See local use flags, known document defaults and copy closure for the finite visibility profile and retained alternate-cache boundary
Qualified transformed groups and retained native caches
Version 2.384.457 extends represented Classic whole-worksheet and selected-group copying to the qualified rotated and flipped nested group profile
The retained cache stays attached to its actual loaded shape, physical provider, typed text, local transforms and ancestry; copying prepares a new target-owned identity without retaining the source workbook
Source and target must retain matching complete source themes, represented document defaults, referenced fonts and actual built-in Normal STYLE to XF to FONT ownership; a fresh or incompatible target does not gain this permission by matching a worksheet name or FONT 0 alone
Original primary properties and nonempty native cache checksums remain preserved; only the owned paired cache identities are rewritten, retaining unrelated XML bytes and package parts
Real whole copies retain the observed source geometry; selected copies replace the root placement explicitly and keep their internal local geometry, rather than inheriting an excluded outer ancestor's transformation
The selected reference is derived by changing one actual root anchor and is compared at corresponding native-save phases; Excel COM resizing also changes internal child coordinates and is a different operation
Whole-copy native geometry is exact in the qualified observations under the unchanged 0.75 point threshold; selected geometry matches its corresponding before-save or after-save reference, while native saving itself can normalize geometry across those phases
Changed cache text, fonts, theme, Normal mapping or transforms refuse with a healthy retry after exact repair; stale copied output refuses before identifier/catalog preparation and preserves the checked stream sentinel
Copied retained-cache output is qualified for BIFF8; arbitrary cache editing, master/reference chains, general target contexts, renderer equivalence and all transformed drawings remain separate work
A master reference that names no master
Version 2.384.485 lets a grouped Classic copy carry a shape master reference whose value is zero, which names no master shape at all, where the copy previously refused that property on its presence alone and so failed the whole worksheet copy
This closes an inconsistency inside the library rather than a gap against the format: the preparation that validates the owner graph already refused this property only when it was present and non-zero, and the custom dash reader already resolved through an absent or zero master, so the copy had been refusing a shape that preparation admitted, over a reference pointing at nothing
What is admitted is exactly a simple zero value; a master reference that is complex, that is a picture reference, or that is non-zero stays refused, and a non-zero one is still refused earlier by that value-paired preparation check with its own unchanged message, so the two remain distinguishable
Admitting a reference that names no master is not a master inheritance chain and follows none: a shape that actually has a master is still refused before any of this, on the flag in its shape record that says so, and a workbook default or a retained alternate property table naming a master is still refused on presence, because neither has a shape that owns the reference; the boundary above that master and reference chains remain separate work is therefore unchanged
The admitted value is carried as the source wrote it and survives saving and reopening the destination, and the copied line Boolean word is unchanged, so this release changes no other byte of such a copy
Known 3D object and style Boolean metadata
Version 2.384.512 retains the complete known 3D-Object and 3D-Style Boolean words in ordinary grouped Classic whole-sheet and selected-group copies
The format defines property identifiers 0x02BF and 0x02FF, with four and five represented value bits respectively and corresponding use bits in the upper word
Cross-workbook copying resolves each flag from the source local use bit, source document default and format default, then writes the known values explicitly into the destination shape
This also protects an absent source word from acquiring values that only the destination workbook declares; ignored local bits remain preserved while ignored document bits are not inherited state
Same-workbook copies retain their existing local raw ownership against the unchanged document default context, and saving and reopening the destination retains the copied words
Both words must be simple non-blip entries; complex words, blip flags including a zero image reference, separate unsupported 3D scalar or color owners and nonzero master identities remain refused before publication
The existing alternate-provider, retained Metro, palette, font and storage guards remain in force; the new full-value materialization applies to the ordinary primary cross-workbook profile, while retained Metro owners keep their independently checked context
OfficeArtOptions.LongValue[Pid] remains a local raw property channel, and this increment adds no effective 3D getter, native 3D geometry or visual rendering qualification
The masks and defaults follow the Microsoft 3D-Object Boolean Properties, 3D-Style Boolean Properties and document property-default rules
Source-owned 3D ambient intensity metadata
Version 2.384.514 preserves the known ambient light intensity metadata in ordinary grouped Classic whole-sheet and selected-group copies
The value is a simple non-blip 16.16 fixed-point scalar from zero through one, represented by raw integers 0 through 65536; the specified default is exactly 20000/65536, or 0.30517578125
An independent cross-workbook copy retains the local source value first, then a represented source workbook default, and finally the specified default when only the destination declares this property, so destination defaults cannot change the source metadata
A same-workbook copy retains the original local value or its absence; the metadata remains accessible through the existing raw OfficeArtOptions.LongValue interface
Out-of-range values, complex entries, image-reference flags including a zero reference, and unsupported adjacent owners remain refused before publication
Retained native cache providers keep their existing complete context matching rules and do not use this new ordinary-copy materialization path
This is a finite metadata-copy profile; other 3D scalars, colors, geometry, master inheritance and native rendering remain separately qualified
The property identity, range and default follow Microsoft c3DAmbientIntensity and its FixedPoint representation
Single-hop nonzero master shape references
Version 2.385.214 extends Classic worksheet drawing persistence and grouped copy (AddCopy and CopyGroup) to valid single-hop nonzero master shape references (hspMaster paired with the shape-record fHaveMaster flag)
Effective property lookups and cross-workbook materialization follow the OfficeArt precedence order of local shape property, master shape property, and finally document default, so a follower shape retains its inherited fill, line, custom dash pattern, shadow, protection/picture/text/fill/line/shadow Boolean words, and 3D Boolean words without picking up conflicting destination workbook defaults
Saving, same-workbook copying, cross-workbook copying, and selected-group copying immediately remap each copied follower's master reference to the copied master's newly assigned non-zero shape identifier and keep both the flag and remapped link across reopened workbooks
Master-free single-hop closure is strictly enforced: missing master identifiers, chained or multi-hop masters whose own fHaveMaster bit or master property is active, flag/value mismatches (such as a nonzero hspMaster without fHaveMaster or fHaveMaster with a zero reference), and selected-group copies whose referenced master lies outside the selected group's ownership closure are refused cleanly
Version 2.385.223 extends single-hop master resolution to typed Fill.FillType queries, source-owned 3D ambient light intensity inheritance, local Line.DashStyle overrides on follower shapes (neutralizing inherited non-flat master or document end caps for non-round-dot presets without mutating the master), cross-workbook scalar line materialization when a follower defines its own custom dash pattern, and Classic SaveSemanticSnapshot capture for top-level single-hop follower shapes with preset or solid dashes
Broader 3D scalars/colors and native 3D/custom-dash visual rendering, general shape regrouping or deletion, and unmodeled raw/foreign hierarchies remain separate work