@types/office-js-preview 1.0.546 → 1.0.548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- office-js-preview/README.md +1 -1
- office-js-preview/index.d.ts +146 -63
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 29 Jan 2025 22:02:46 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -22269,8 +22269,9 @@ declare namespace Office {
|
|
|
22269
22269
|
* your add-in has persisted changes.
|
|
22270
22270
|
* The persisted changes will not be available until the task pane (or item in the case of UI-less add-ins) is closed and reopened.
|
|
22271
22271
|
*
|
|
22272
|
-
* -
|
|
22273
|
-
* these settings
|
|
22272
|
+
* - In classic Outlook on Windows, if roaming settings were configured on another Outlook client, the desktop client doesn't need to be restarted.
|
|
22273
|
+
* However, the add-in needs to be reloaded to access these settings. In Outlook on the web, on Mac, and in the new Outlook on Windows,
|
|
22274
|
+
* you must refresh the browser or restart the client to access roaming settings set on another client.
|
|
22274
22275
|
*
|
|
22275
22276
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **restricted**
|
|
22276
22277
|
*
|
|
@@ -104142,6 +104143,14 @@ declare namespace Word {
|
|
|
104142
104143
|
* @beta
|
|
104143
104144
|
*/
|
|
104144
104145
|
readonly body: Word.Body;
|
|
104146
|
+
/**
|
|
104147
|
+
* Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape.
|
|
104148
|
+
*
|
|
104149
|
+
* @remarks
|
|
104150
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
104151
|
+
* @beta
|
|
104152
|
+
*/
|
|
104153
|
+
readonly parentGroup: Word.Shape;
|
|
104145
104154
|
/**
|
|
104146
104155
|
* Gets the shape group associated with the shape. An object with its `isNullObject` property set to `true` will be returned if the shape type isn't "GroupShape". For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
104147
104156
|
*
|
|
@@ -104174,6 +104183,14 @@ declare namespace Word {
|
|
|
104174
104183
|
* @beta
|
|
104175
104184
|
*/
|
|
104176
104185
|
readonly id: number;
|
|
104186
|
+
/**
|
|
104187
|
+
* Check whether this shape is a child of a group shape or a canvas shape.
|
|
104188
|
+
*
|
|
104189
|
+
* @remarks
|
|
104190
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
104191
|
+
* @beta
|
|
104192
|
+
*/
|
|
104193
|
+
readonly isChild: boolean;
|
|
104177
104194
|
/**
|
|
104178
104195
|
* The distance, in points, from the left side of the shape to the horizontal relative position, see {@link Word.RelativeHorizontalPosition}. For an inline shape, it will return 0 and can't be set.
|
|
104179
104196
|
*
|
|
@@ -104360,7 +104377,7 @@ declare namespace Word {
|
|
|
104360
104377
|
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
104361
104378
|
* @beta
|
|
104362
104379
|
*/
|
|
104363
|
-
|
|
104380
|
+
ungroup(): Word.ShapeCollection;
|
|
104364
104381
|
/**
|
|
104365
104382
|
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
104366
104383
|
*
|
|
@@ -104448,6 +104465,16 @@ declare namespace Word {
|
|
|
104448
104465
|
* @param ids Required. An array of shape identifiers.
|
|
104449
104466
|
*/
|
|
104450
104467
|
getByIds(ids: number[]): Word.ShapeCollection;
|
|
104468
|
+
/**
|
|
104469
|
+
* Gets the shapes that have the specified names.
|
|
104470
|
+
*
|
|
104471
|
+
* @remarks
|
|
104472
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
104473
|
+
* @beta
|
|
104474
|
+
*
|
|
104475
|
+
* @param names Required. An array of shape names.
|
|
104476
|
+
*/
|
|
104477
|
+
getByNames(names: string[]): Word.ShapeCollection;
|
|
104451
104478
|
/**
|
|
104452
104479
|
* Gets the shapes that have the specified types.
|
|
104453
104480
|
*
|
|
@@ -111446,13 +111473,21 @@ declare namespace Word {
|
|
|
111446
111473
|
/** An interface for updating data on the `Shape` object, for use in `shape.set({ ... })`. */
|
|
111447
111474
|
interface ShapeUpdateData {
|
|
111448
111475
|
/**
|
|
111449
|
-
|
|
111450
|
-
|
|
111451
|
-
|
|
111452
|
-
|
|
111453
|
-
|
|
111454
|
-
|
|
111476
|
+
* Represents the body object of the shape. Only applies to text boxes and geometric shapes.
|
|
111477
|
+
*
|
|
111478
|
+
* @remarks
|
|
111479
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
111480
|
+
* @beta
|
|
111481
|
+
*/
|
|
111455
111482
|
body?: Word.Interfaces.BodyUpdateData;
|
|
111483
|
+
/**
|
|
111484
|
+
* Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape.
|
|
111485
|
+
*
|
|
111486
|
+
* @remarks
|
|
111487
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
111488
|
+
* @beta
|
|
111489
|
+
*/
|
|
111490
|
+
parentGroup?: Word.Interfaces.ShapeUpdateData;
|
|
111456
111491
|
/**
|
|
111457
111492
|
* Gets the shape group associated with the shape. An object with its `isNullObject` property set to `true` will be returned if the shape type isn't "GroupShape". For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
111458
111493
|
*
|
|
@@ -113798,6 +113833,14 @@ declare namespace Word {
|
|
|
113798
113833
|
* @beta
|
|
113799
113834
|
*/
|
|
113800
113835
|
body?: Word.Interfaces.BodyData;
|
|
113836
|
+
/**
|
|
113837
|
+
* Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape.
|
|
113838
|
+
*
|
|
113839
|
+
* @remarks
|
|
113840
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
113841
|
+
* @beta
|
|
113842
|
+
*/
|
|
113843
|
+
parentGroup?: Word.Interfaces.ShapeData;
|
|
113801
113844
|
/**
|
|
113802
113845
|
* Gets the shape group associated with the shape. An object with its `isNullObject` property set to `true` will be returned if the shape type isn't "GroupShape". For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
113803
113846
|
*
|
|
@@ -113830,6 +113873,14 @@ declare namespace Word {
|
|
|
113830
113873
|
* @beta
|
|
113831
113874
|
*/
|
|
113832
113875
|
id?: number;
|
|
113876
|
+
/**
|
|
113877
|
+
* Check whether this shape is a child of a group shape or a canvas shape.
|
|
113878
|
+
*
|
|
113879
|
+
* @remarks
|
|
113880
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
113881
|
+
* @beta
|
|
113882
|
+
*/
|
|
113883
|
+
isChild?: boolean;
|
|
113833
113884
|
/**
|
|
113834
113885
|
* The distance, in points, from the left side of the shape to the horizontal relative position, see {@link Word.RelativeHorizontalPosition}. For an inline shape, it will return 0 and can't be set.
|
|
113835
113886
|
*
|
|
@@ -118310,13 +118361,21 @@ declare namespace Word {
|
|
|
118310
118361
|
*/
|
|
118311
118362
|
$all?: boolean;
|
|
118312
118363
|
/**
|
|
118313
|
-
|
|
118314
|
-
|
|
118315
|
-
|
|
118316
|
-
|
|
118317
|
-
|
|
118318
|
-
|
|
118364
|
+
* Represents the body object of the shape. Only applies to text boxes and geometric shapes.
|
|
118365
|
+
*
|
|
118366
|
+
* @remarks
|
|
118367
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
118368
|
+
* @beta
|
|
118369
|
+
*/
|
|
118319
118370
|
body?: Word.Interfaces.BodyLoadOptions;
|
|
118371
|
+
/**
|
|
118372
|
+
* Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape.
|
|
118373
|
+
*
|
|
118374
|
+
* @remarks
|
|
118375
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
118376
|
+
* @beta
|
|
118377
|
+
*/
|
|
118378
|
+
parentGroup?: Word.Interfaces.ShapeLoadOptions;
|
|
118320
118379
|
/**
|
|
118321
118380
|
* Gets the shape group associated with the shape. An object with its `isNullObject` property set to `true` will be returned if the shape type isn't "GroupShape". For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
118322
118381
|
*
|
|
@@ -118349,6 +118408,14 @@ declare namespace Word {
|
|
|
118349
118408
|
* @beta
|
|
118350
118409
|
*/
|
|
118351
118410
|
id?: boolean;
|
|
118411
|
+
/**
|
|
118412
|
+
* Check whether this shape is a child of a group shape or a canvas shape.
|
|
118413
|
+
*
|
|
118414
|
+
* @remarks
|
|
118415
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
118416
|
+
* @beta
|
|
118417
|
+
*/
|
|
118418
|
+
isChild?: boolean;
|
|
118352
118419
|
/**
|
|
118353
118420
|
* The distance, in points, from the left side of the shape to the horizontal relative position, see {@link Word.RelativeHorizontalPosition}. For an inline shape, it will return 0 and can't be set.
|
|
118354
118421
|
*
|
|
@@ -118448,13 +118515,21 @@ declare namespace Word {
|
|
|
118448
118515
|
*/
|
|
118449
118516
|
$all?: boolean;
|
|
118450
118517
|
/**
|
|
118451
|
-
|
|
118452
|
-
|
|
118453
|
-
|
|
118454
|
-
|
|
118455
|
-
|
|
118456
|
-
|
|
118518
|
+
* For EACH ITEM in the collection: Represents the body object of the shape. Only applies to text boxes and geometric shapes.
|
|
118519
|
+
*
|
|
118520
|
+
* @remarks
|
|
118521
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
118522
|
+
* @beta
|
|
118523
|
+
*/
|
|
118457
118524
|
body?: Word.Interfaces.BodyLoadOptions;
|
|
118525
|
+
/**
|
|
118526
|
+
* For EACH ITEM in the collection: Gets the top-level parent group shape of this child shape. It will be null if it isn't a child shape.
|
|
118527
|
+
*
|
|
118528
|
+
* @remarks
|
|
118529
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
118530
|
+
* @beta
|
|
118531
|
+
*/
|
|
118532
|
+
parentGroup?: Word.Interfaces.ShapeLoadOptions;
|
|
118458
118533
|
/**
|
|
118459
118534
|
* For EACH ITEM in the collection: Gets the shape group associated with the shape. An object with its `isNullObject` property set to `true` will be returned if the shape type isn't "GroupShape". For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
118460
118535
|
*
|
|
@@ -118487,6 +118562,14 @@ declare namespace Word {
|
|
|
118487
118562
|
* @beta
|
|
118488
118563
|
*/
|
|
118489
118564
|
id?: boolean;
|
|
118565
|
+
/**
|
|
118566
|
+
* For EACH ITEM in the collection: Check whether this shape is a child of a group shape or a canvas shape.
|
|
118567
|
+
*
|
|
118568
|
+
* @remarks
|
|
118569
|
+
* [Api set: WordApi BETA (PREVIEW ONLY)]
|
|
118570
|
+
* @beta
|
|
118571
|
+
*/
|
|
118572
|
+
isChild?: boolean;
|
|
118490
118573
|
/**
|
|
118491
118574
|
* For EACH ITEM in the collection: The distance, in points, from the left side of the shape to the horizontal relative position, see {@link Word.RelativeHorizontalPosition}. For an inline shape, it will return 0 and can't be set.
|
|
118492
118575
|
*
|
|
@@ -130978,47 +131061,47 @@ declare namespace PowerPoint {
|
|
|
130978
131061
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
130979
131062
|
context: RequestContext;
|
|
130980
131063
|
/**
|
|
130981
|
-
*
|
|
131064
|
+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
|
|
130982
131065
|
*
|
|
130983
131066
|
* @remarks
|
|
130984
131067
|
* [Api set: PowerPointApi 1.4]
|
|
130985
131068
|
*/
|
|
130986
|
-
bold: boolean;
|
|
131069
|
+
bold: boolean | null;
|
|
130987
131070
|
/**
|
|
130988
|
-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange`
|
|
131071
|
+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
|
|
130989
131072
|
*
|
|
130990
131073
|
* @remarks
|
|
130991
131074
|
* [Api set: PowerPointApi 1.4]
|
|
130992
131075
|
*/
|
|
130993
|
-
color: string;
|
|
131076
|
+
color: string | null;
|
|
130994
131077
|
/**
|
|
130995
|
-
*
|
|
131078
|
+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
|
|
130996
131079
|
*
|
|
130997
131080
|
* @remarks
|
|
130998
131081
|
* [Api set: PowerPointApi 1.4]
|
|
130999
131082
|
*/
|
|
131000
|
-
italic: boolean;
|
|
131083
|
+
italic: boolean | null;
|
|
131001
131084
|
/**
|
|
131002
|
-
*
|
|
131085
|
+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
|
|
131003
131086
|
*
|
|
131004
131087
|
* @remarks
|
|
131005
131088
|
* [Api set: PowerPointApi 1.4]
|
|
131006
131089
|
*/
|
|
131007
|
-
name: string;
|
|
131090
|
+
name: string | null;
|
|
131008
131091
|
/**
|
|
131009
|
-
*
|
|
131092
|
+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
|
|
131010
131093
|
*
|
|
131011
131094
|
* @remarks
|
|
131012
131095
|
* [Api set: PowerPointApi 1.4]
|
|
131013
131096
|
*/
|
|
131014
|
-
size: number;
|
|
131097
|
+
size: number | null;
|
|
131015
131098
|
/**
|
|
131016
|
-
*
|
|
131099
|
+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
|
|
131017
131100
|
*
|
|
131018
131101
|
* @remarks
|
|
131019
131102
|
* [Api set: PowerPointApi 1.4]
|
|
131020
131103
|
*/
|
|
131021
|
-
underline:
|
|
131104
|
+
underline: ShapeFontUnderlineStyle | null;
|
|
131022
131105
|
/**
|
|
131023
131106
|
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
|
|
131024
131107
|
*
|
|
@@ -133491,47 +133574,47 @@ declare namespace PowerPoint {
|
|
|
133491
133574
|
/** An interface for updating data on the `ShapeFont` object, for use in `shapeFont.set({ ... })`. */
|
|
133492
133575
|
interface ShapeFontUpdateData {
|
|
133493
133576
|
/**
|
|
133494
|
-
*
|
|
133577
|
+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
|
|
133495
133578
|
*
|
|
133496
133579
|
* @remarks
|
|
133497
133580
|
* [Api set: PowerPointApi 1.4]
|
|
133498
133581
|
*/
|
|
133499
|
-
bold?: boolean;
|
|
133582
|
+
bold?: boolean | null;
|
|
133500
133583
|
/**
|
|
133501
|
-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange`
|
|
133584
|
+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
|
|
133502
133585
|
*
|
|
133503
133586
|
* @remarks
|
|
133504
133587
|
* [Api set: PowerPointApi 1.4]
|
|
133505
133588
|
*/
|
|
133506
|
-
color?: string;
|
|
133589
|
+
color?: string | null;
|
|
133507
133590
|
/**
|
|
133508
|
-
*
|
|
133591
|
+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
|
|
133509
133592
|
*
|
|
133510
133593
|
* @remarks
|
|
133511
133594
|
* [Api set: PowerPointApi 1.4]
|
|
133512
133595
|
*/
|
|
133513
|
-
italic?: boolean;
|
|
133596
|
+
italic?: boolean | null;
|
|
133514
133597
|
/**
|
|
133515
|
-
*
|
|
133598
|
+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
|
|
133516
133599
|
*
|
|
133517
133600
|
* @remarks
|
|
133518
133601
|
* [Api set: PowerPointApi 1.4]
|
|
133519
133602
|
*/
|
|
133520
|
-
name?: string;
|
|
133603
|
+
name?: string | null;
|
|
133521
133604
|
/**
|
|
133522
|
-
*
|
|
133605
|
+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
|
|
133523
133606
|
*
|
|
133524
133607
|
* @remarks
|
|
133525
133608
|
* [Api set: PowerPointApi 1.4]
|
|
133526
133609
|
*/
|
|
133527
|
-
size?: number;
|
|
133610
|
+
size?: number | null;
|
|
133528
133611
|
/**
|
|
133529
|
-
*
|
|
133612
|
+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
|
|
133530
133613
|
*
|
|
133531
133614
|
* @remarks
|
|
133532
133615
|
* [Api set: PowerPointApi 1.4]
|
|
133533
133616
|
*/
|
|
133534
|
-
underline?:
|
|
133617
|
+
underline?: ShapeFontUnderlineStyle | null;
|
|
133535
133618
|
}
|
|
133536
133619
|
/** An interface for updating data on the `ShapeCollection` object, for use in `shapeCollection.set({ ... })`. */
|
|
133537
133620
|
interface ShapeCollectionUpdateData {
|
|
@@ -133917,47 +134000,47 @@ declare namespace PowerPoint {
|
|
|
133917
134000
|
/** An interface describing the data returned by calling `shapeFont.toJSON()`. */
|
|
133918
134001
|
interface ShapeFontData {
|
|
133919
134002
|
/**
|
|
133920
|
-
*
|
|
134003
|
+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
|
|
133921
134004
|
*
|
|
133922
134005
|
* @remarks
|
|
133923
134006
|
* [Api set: PowerPointApi 1.4]
|
|
133924
134007
|
*/
|
|
133925
|
-
bold?: boolean;
|
|
134008
|
+
bold?: boolean | null;
|
|
133926
134009
|
/**
|
|
133927
|
-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange`
|
|
134010
|
+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
|
|
133928
134011
|
*
|
|
133929
134012
|
* @remarks
|
|
133930
134013
|
* [Api set: PowerPointApi 1.4]
|
|
133931
134014
|
*/
|
|
133932
|
-
color?: string;
|
|
134015
|
+
color?: string | null;
|
|
133933
134016
|
/**
|
|
133934
|
-
*
|
|
134017
|
+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
|
|
133935
134018
|
*
|
|
133936
134019
|
* @remarks
|
|
133937
134020
|
* [Api set: PowerPointApi 1.4]
|
|
133938
134021
|
*/
|
|
133939
|
-
italic?: boolean;
|
|
134022
|
+
italic?: boolean | null;
|
|
133940
134023
|
/**
|
|
133941
|
-
*
|
|
134024
|
+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
|
|
133942
134025
|
*
|
|
133943
134026
|
* @remarks
|
|
133944
134027
|
* [Api set: PowerPointApi 1.4]
|
|
133945
134028
|
*/
|
|
133946
|
-
name?: string;
|
|
134029
|
+
name?: string | null;
|
|
133947
134030
|
/**
|
|
133948
|
-
*
|
|
134031
|
+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
|
|
133949
134032
|
*
|
|
133950
134033
|
* @remarks
|
|
133951
134034
|
* [Api set: PowerPointApi 1.4]
|
|
133952
134035
|
*/
|
|
133953
|
-
size?: number;
|
|
134036
|
+
size?: number | null;
|
|
133954
134037
|
/**
|
|
133955
|
-
*
|
|
134038
|
+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
|
|
133956
134039
|
*
|
|
133957
134040
|
* @remarks
|
|
133958
134041
|
* [Api set: PowerPointApi 1.4]
|
|
133959
134042
|
*/
|
|
133960
|
-
underline?:
|
|
134043
|
+
underline?: ShapeFontUnderlineStyle | null;
|
|
133961
134044
|
}
|
|
133962
134045
|
/** An interface describing the data returned by calling `shapeCollection.toJSON()`. */
|
|
133963
134046
|
interface ShapeCollectionData {
|
|
@@ -134602,42 +134685,42 @@ declare namespace PowerPoint {
|
|
|
134602
134685
|
*/
|
|
134603
134686
|
$all?: boolean;
|
|
134604
134687
|
/**
|
|
134605
|
-
*
|
|
134688
|
+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
|
|
134606
134689
|
*
|
|
134607
134690
|
* @remarks
|
|
134608
134691
|
* [Api set: PowerPointApi 1.4]
|
|
134609
134692
|
*/
|
|
134610
134693
|
bold?: boolean;
|
|
134611
134694
|
/**
|
|
134612
|
-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange`
|
|
134695
|
+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
|
|
134613
134696
|
*
|
|
134614
134697
|
* @remarks
|
|
134615
134698
|
* [Api set: PowerPointApi 1.4]
|
|
134616
134699
|
*/
|
|
134617
134700
|
color?: boolean;
|
|
134618
134701
|
/**
|
|
134619
|
-
*
|
|
134702
|
+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
|
|
134620
134703
|
*
|
|
134621
134704
|
* @remarks
|
|
134622
134705
|
* [Api set: PowerPointApi 1.4]
|
|
134623
134706
|
*/
|
|
134624
134707
|
italic?: boolean;
|
|
134625
134708
|
/**
|
|
134626
|
-
*
|
|
134709
|
+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
|
|
134627
134710
|
*
|
|
134628
134711
|
* @remarks
|
|
134629
134712
|
* [Api set: PowerPointApi 1.4]
|
|
134630
134713
|
*/
|
|
134631
134714
|
name?: boolean;
|
|
134632
134715
|
/**
|
|
134633
|
-
*
|
|
134716
|
+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
|
|
134634
134717
|
*
|
|
134635
134718
|
* @remarks
|
|
134636
134719
|
* [Api set: PowerPointApi 1.4]
|
|
134637
134720
|
*/
|
|
134638
134721
|
size?: boolean;
|
|
134639
134722
|
/**
|
|
134640
|
-
*
|
|
134723
|
+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
|
|
134641
134724
|
*
|
|
134642
134725
|
* @remarks
|
|
134643
134726
|
* [Api set: PowerPointApi 1.4]
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.548",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "0dc89a69969efa96462d78c9a424c43ccb52afeb45fed662f9ea011b611248f4",
|
|
50
50
|
"typeScriptVersion": "5.0",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|