External Interfaces - The MathWorks - #401

/ 649


catalogue search
P. 401
P. 402
P. 403
P. 404
P. 405
P. 406
P. 407
P. 408
P. 409
P. 410
P. 411
P. 412
P. 413
P. 414
P. 415
P. 416
P. 417
P. 418
P. 419
P. 420
P. 421
P. 422
P. 423
P. 424
P. 425
P. 426
P. 427
P. 428
P. 429
P. 430
P. 431
P. 432
P. 433
P. 434
P. 435
P. 436
P. 437
P. 438
P. 439
P. 440
P. 441
P. 442
P. 443
P. 444
P. 445
P. 446
P. 447
P. 448
P. 449
P. 450


See other catalogues for The MathWorks

Text version of the page
Using Object Properties
Finding All Enumerated Properties
The get and set functions support enumerated values for properties for those applications that provide them. Use the set function to see which properties use enumerated types.
For example, create an Excel® spreadsheet:
h = actxserver('excel.application'); Type:
h.set MATLAB displays:
ans =
Creator: {'xlCreatorCode'} ConstrainNumeric: {}
CopyObjectsWithCells: {} Cursor: {4x1 cell} CutCopyMode: {2x1 cell}
MATLAB displays the properties that accept enumerated types as nonempty cell arrays. In this example, Cursor and CutCopyMode accept a choice of settings. Properties for which there is only one possible setting are displayed as a one row cell array (see Creator, above).
Use the get function to display the current values ofthese properties. Type: h.get
MATLAB displays information such as:
Creator: 'xlCreatorCode'
ConstrainNumeric: 0
CopyObjectsWithCells: 1
Cursor: 'xlDefault'
CutCopyMode: ''
9-31

pageCatalog pdf di En 2012-06-22-01