TableStyle.Condition Method 

Returns a ConditionalStyle object that represents special style formatting for a portion of a table.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim ConditionCode As WdConditionCode
Dim returnValue As ConditionalStyle
Dim tableStyle1 As TableStyle
returnValue = tableStyle1.Condition(ConditionCode)

Syntax

Function Condition( _
    <InAttribute()> ByVal ConditionCode As WdConditionCode _
) As ConditionalStyle
ConditionalStyle Condition(
    [In] WdConditionCode ConditionCode
);
public: ConditionalStyle^ Condition(
    WdConditionCode^ ConditionCode
);
public ConditionalStyle Condition(
    /*in*/WdConditionCode ConditionCode
);
function Condition(
     ConditionCode : WdConditionCode
) : ConditionalStyle;

Parameters

  • ConditionCode
    Required WdConditionCode. The area of the table to which to apply the formatting.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

TableStyle Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

TableStyle Members