Document.OMathBreakSub Property (2007 System)

Gets or sets a value that specifies how Microsoft Office Word handles a subtraction operator that falls before a line break.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Property OMathBreakSub As WdOMathBreakSub
'Usage
Dim instance As Document 
Dim value As WdOMathBreakSub 

value = instance.OMathBreakSub

instance.OMathBreakSub = value
public WdOMathBreakSub OMathBreakSub { get; set; }
public:
property WdOMathBreakSub OMathBreakSub {
    WdOMathBreakSub get ();
    void set (WdOMathBreakSub value);
}
public function get OMathBreakSub () : WdOMathBreakSub 
public function set OMathBreakSub (value : WdOMathBreakSub)

Property Value

Type: WdOMathBreakSub
One of the WdOMathBreakSub values.

Remarks

This property is used only when the OMathBreakBin property is set to wdOMathBreakBinRepeat. Subtraction sometimes receives special treatment when a line break falls on a subtraction operator and the document setting is to repeat the subtraction operator on the following line, because two negatives make a positive. Some writers choose to convert one of the minus signs into a plus sign, and some choose to keep the two negatives.

Examples

The following code example sets the OMathBreakBin property to a value that causes the binary operator that the equation breaks on to repeat at the beginning of the new line. In addition, the code sets the OMathBreakSub property to a value that converts the sequence of two subtraction operators to a sequence of a plus operator followed by a minus operator. This prevents double negatives from being created when the OMathBreakBin property is set to wdOMathBreakBinRepeat, which repeats the subtraction operator at the equation break.

This example is for a document-level customization.

Private Sub SetEquationBinaryOperatorBreak()
    Me.OMathBreakBin = Word.WdOMathBreakBin.wdOMathBreakBinRepeat
    Me.OMathBreakSub = Word.WdOMathBreakSub.wdOMathBreakSubPlusMinus
End Sub
private void SetEquationBinaryOperatorBreak()
{            
    this.OMathBreakBin = Word.WdOMathBreakBin.wdOMathBreakBinRepeat;
    this.OMathBreakSub = Word.WdOMathBreakSub.wdOMathBreakSubPlusMinus;
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace