OfficeExtension.UpdateOptions interface
複数のプロパティの設定に使用されるオブジェクトが読み取り専用プロパティを設定しようとしたときにエラーを抑制するオプションを提供します。
注釈
使用元
- Excel.AllowEditRange: set
- Excel.Application: set
- Excel.CellValueConditionalFormat: set
- Excel.Chart: set
- Excel.ChartAreaFormat: set
- Excel.ChartAxes: set
- Excel.ChartAxis: set
- Excel.ChartAxisFormat: set
- Excel.ChartAxisTitle: set
- Excel.ChartAxisTitleFormat: set
- Excel.ChartBinOptions: set
- Excel.ChartBorder: set
- Excel.ChartBoxwhiskerOptions: set
- Excel.ChartDataLabel: set
- Excel.ChartDataLabelAnchor: set
- Excel.ChartDataLabelFormat: set
- Excel.ChartDataLabels: set
- Excel.ChartDataTable: set
- Excel.ChartDataTableFormat: set
- Excel.ChartErrorBars: set
- Excel.ChartErrorBarsFormat: set
- Excel.ChartFont: set
- Excel.ChartFormatString: set
- Excel.ChartGridlines: set
- Excel.ChartGridlinesFormat: set
- Excel.ChartLeaderLines: set
- Excel.ChartLeaderLinesFormat: set
- Excel.ChartLegend: set
- Excel.ChartLegendEntry: set
- Excel.ChartLegendFormat: set
- Excel.ChartLineFormat: set
- Excel.ChartMapOptions: set
- Excel.ChartPivotOptions: set
- Excel.ChartPlotArea: set
- Excel.ChartPlotAreaFormat: set
- Excel.ChartPoint: set
- Excel.ChartPointFormat: set
- Excel.ChartSeries: set
- Excel.ChartSeriesFormat: set
- Excel.ChartTitle: set
- Excel.ChartTitleFormat: set
- Excel.ChartTrendline: 設定
- Excel.ChartTrendlineFormat: set
- Excel.ChartTrendlineLabel: set
- Excel.ChartTrendlineLabelFormat: set
- Excel.ColorScaleConditionalFormat: set
- Excel.Comment: set
- Excel.CommentReply: set
- Excel.ConditionalDataBarNegativeFormat: set
- Excel.ConditionalDataBarPositiveFormat: set
- Excel.ConditionalFormat: set
- Excel.ConditionalFormatRule: set
- Excel.ConditionalRangeBorder: set
- Excel.ConditionalRangeFill: set
- Excel.ConditionalRangeFont: set
- Excel.ConditionalRangeFormat: set
- Excel.CustomConditionalFormat: set
- Excel.CustomProperty: set
- Excel.DataBarConditionalFormat: set
- Excel.DataPivotHierarchy: set
- Excel.DataValidation: set
- Excel.DocumentProperties: set
- Excel.FilterPivotHierarchy: set
- Excel.FormatProtection: set
- Excel.HeaderFooter: set
- Excel.HeaderFooterGroup: set
- Excel.HeaderFooterPicture: set
- Excel.IconSetConditionalFormat: set
- Excel.Image: set
- Excel.IterativeCalculation: set
- Excel.Line: set
- Excel.NamedItem: set
- Excel.Note: set
- Excel.PageLayout: set
- Excel.PivotField: set
- Excel.PivotHierarchy: set
- Excel.PivotItem: set
- Excel.PivotLayout: set
- Excel.PivotTable: set
- Excel.PivotTableStyle: set
- Excel.PresetCriteriaConditionalFormat: set
- Excel.Range: set
- Excel.RangeAreas: set
- Excel.RangeBorder: set
- Excel.RangeFill: set
- Excel.RangeFont: set
- Excel.RangeFormat: set
- Excel.RangeView: set
- Excel.RowColumnPivotHierarchy: set
- Excel.Runtime: set
- Excel.Setting: set
- Excel.Shape: set
- Excel.ShapeFill: set
- Excel.ShapeFont: set
- Excel.ShapeLineFormat: set
- Excel.Slicer: set
- Excel.SlicerItem: set
- Excel.SlicerStyle: set
- Excel.Style: set
- Excel.Table: set
- Excel.TableColumn: set
- Excel.TableRow: set
- Excel.TableStyle: set
- Excel.TextConditionalFormat: set
- Excel.TextFrame: set
- Excel.TextRange: set
- Excel.TimelineStyle: set
- Excel.TopBottomConditionalFormat: set
- Excel.Window: set
- Excel.Workbook: set
- Excel.Worksheet: set
- Excel.WorksheetCustomProperty: set
- OneNote.Application: set
- OneNote.Image: 設定
- OneNote.InkAnalysis: set
- OneNote.InkAnalysisLine: set
- OneNote.InkAnalysisParagraph: set
- OneNote.InkAnalysisWord: set
- OneNote.Page: set
- OneNote.PageContent: set
- OneNote.Paragraph: set
- OneNote.Table: set
- OneNote.TableCell: set
- Visio.Application: set
- Visio.Comment: set
- Visio.Document: set
- Visio.DocumentView: set
- Visio.Page: set
- Visio.PageView: set
- Visio.Shape: set
- Visio.ShapeView: set
- Word.アプリケーション: セット
- Word.参考文献:セット
- Word.本文: set
- Word.ブックマーク: 設定
- Word.罫線: 設定
- Word.BorderUniversal: set
- Word.休憩: 設定
- Word.BuildingBlock: set
- Word.BuildingBlockGalleryContentControl: set
- Word.キャンバス: 設定
- Word.CheckboxContentControl: set
- Word.CoauthoringLock: set
- Word.CoauthoringUpdate: set
- Word.ColorFormat: set
- Word.コメント: 設定
- Word.CommentContentRange: set
- Word.CommentReply: set
- Word.競合:設定
- Word.ContentControl: set
- Word.ContentControlListItem: set
- Word.CustomProperty: set
- Word.CustomXmlNode: set
- Word.CustomXmlPart: set
- Word.CustomXmlValidationError: set
- Word.DatePickerContentControl: set
- Word.ドキュメント: セット
- Word.DocumentCreated: set
- Word.DocumentProperties: set
- Word.エディター: set
- Word.フィールド: 設定
- Word.FillFormat: set
- Word.フォント: set
- Word.フレーム: セット
- Word.GlowFormat: set
- Word.GroupContentControl: set
- Word.HeadingStyle: set
- Word.ハイパーリンク: セット
- Word.インデックス: セット
- Word.InlinePicture: set
- Word.LineFormat: set
- Word.LineNumbering: set
- Word.LinkFormat: set
- Word.ListFormat: set
- Word.ListItem: set
- Word.ListLevel: set
- Word.ListTemplate: set
- Word.注:set
- Word.OleFormat: set
- Word.PageSetup: set
- Word.段落:設定
- Word.ParagraphFormat: set
- Word.PictureContentControl: set
- Word.範囲: 設定
- Word.ReflectionFormat: set
- Word.RepeatingSectionContentControl: set
- Word.RepeatingSectionItem: set
- Word.レビューアー: set
- Word.Revision: set
- Word.RevisionsFilter: set
- Word.SearchOptions: set
- Word.セクション: セット
- Word.設定: 設定
- Word.網掛け: 設定
- Word.ShadingUniversal: set
- Word.ShadowFormat: set
- Word.形状:セット
- Word.ShapeFill: set
- Word.ShapeGroup: set
- Word.ShapeTextWrap: set
- Word.スタイル: 設定
- Word.テーブル: セット
- Word.TableBorder: set
- Word.TableCell: set
- Word.TableColumn: set
- Word.TableOfAuthorities: set
- Word.TableOfContents: set
- Word.TableOfFigures: set
- Word.TableRow: set
- Word.TableStyle: set
- Word.テンプレート: セット
- Word.TextColumn: set
- Word.TextFrame: set
- Word.ThreeDimensionalFormat: set
- Word.表示: 設定
- Word.ウィンドウ: 設定
- Word.XmlMapping: set
例
// Update a range in an Excel worksheet using the RangeUpdateData interface.
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getItem("Sample");
const range = sheet.getRange("B2:E2");
// Configure the set operation to still run if a readonly property is included.
// All settable properties will be updated.
const options: OfficeExtension.UpdateOptions = {throwOnReadOnly: false};
// Set the range with some data from another source (`updateData` is set elsewhere).
range.set(updateData, options);
await context.sync();
});
プロパティ
| throw |
渡されたプロパティの一覧に読み取り専用プロパティが含まれている場合は、エラーをスローします (既定値 = true)。 |
プロパティの詳細
throwOnReadOnly
渡されたプロパティの一覧に読み取り専用プロパティが含まれている場合は、エラーをスローします (既定値 = true)。
throwOnReadOnly?: boolean
プロパティ値
boolean