Enum
WordStyleConflictMode
OfficeIMO.Word
Decides what happens when an imported style matches a style the target document already has.
Inheritance
- Enum
- WordStyleConflictMode
Remarks
A style matches when it has the same type and name, or the same type and identifier.
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
Accepted by parameters 1
- Method WordStyleCollection.Import
Inherited Methods
ToString 4 overloads
public string ToString(IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Inherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const WordStyleConflictMode KeepTarget #Keep the target's style. Imported styles that refer to it use the target's definition.
Value:
0public const WordStyleConflictMode Overwrite #Replace the target's definition with the imported one, keeping the target's identifier.
Value:
1public const WordStyleConflictMode Rename #Import the style alongside the target's under a new, unique identifier and name.
Value:
2