Document.OMathBreakBin Property (2007 System)
Gets or sets a value that specifies where Microsoft Office Word places binary operators when equations span two or more lines.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Property OMathBreakBin As WdOMathBreakBin
'Usage
Dim instance As Document
Dim value As WdOMathBreakBin
value = instance.OMathBreakBin
instance.OMathBreakBin = value
public WdOMathBreakBin OMathBreakBin { get; set; }
public:
property WdOMathBreakBin OMathBreakBin {
WdOMathBreakBin get ();
void set (WdOMathBreakBin value);
}
public function get OMathBreakBin () : WdOMathBreakBin
public function set OMathBreakBin (value : WdOMathBreakBin)
Property Value
Type: WdOMathBreakBin
One of the WdOMathBreakBin values.
Remarks
When the equation breaks on a binary operator—for example, an addition, subtraction, or multiplication operator—there are three different placements of the operator: before the break, after the break, and repeated both before and after the break.
When this property is set to wdOMathBreakBinRepeat, use the OMathBreakSub property to specify how Word treats subtraction operators that appear before a line break.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.