
The common question in our support flow is: Do you have Office colors, can you please send them to me? If you are asking the same question, you will find the answer it in this post. NET controls in their add-ins or standalone applications, they have to customize controls in order to comply with the Office color styles. Please consult the command-window help text of MSOCOLOR ('help msocolor') for the detailed description of the function and its input argument options.To make your controls look like Office ones isn’t a simple task. Note that NextPlot property of the axes must be set to 'replacechildren' to change ColorOrder for subsequent plot command to keep the ColorOrder. In addition to retrieving the colors as is, MSOCOLOR has the built-in capability to darken or lighten the color palette in the same way MS Office handles it.Įxample: To use the default MS OFfice Accent colors as the plot line colors:Īxes('NextPlot','replacechildren','ColorOrder',C.AccentColors) The file must be a valid format for the specified application. MSOCOLOR(APPNAME,FILENAME) may be used to retrieve the color scheme of an existing Office data file specified by FILENAME. APPNAME can be one of 'word', 'excel', or 'powerpoint'. MSOCOLOR(APPNAME) can retrieve the color scheme of currently active file in the Office application specified by APPNAME.

There are 40 additional built-in themes in MS Office 2010: Adjacency, Angles, Apex, Apothecary, Aspect, Austin, Black Tie, Civic, Clarity, Composite, Concourse, Couture, Elemental, Equity, Essential, Executive, Flow, Foundry, Grayscale, Grid, Hardcover, Horizon, Median, Metro, Module, Newsprint, Opulent, Oriel, Origin, Paper, Perspective, Pushpin, Slipstream, Solstice, Technic, Thatch, Trek, Urban, Verve, and Waveform.

The default theme (which is not given as a file) can be retrieved by specifying 'Office'. MSOCOLOR('theme') reads color data from 'theme.xml' file in "Theme Colors" folders within (both global and user) Office Templates folders. MSOCOLOR is only compatible with MS Office 2007 or later (to the authors knowledge) and uses MATLAB's. MSOCOLOR is intended simplify the creation of MATLAB figures that are color-matched to MS Office documents.
