Static Public Member Functions | List of all members
ElementPropertyUtils Struct Reference

#include <ElementPropertyUtils.h>

Static Public Member Functions

static void ApplyActiveSettings (EditElementHandleR eeh)
 Update the supplied element to the current active settings. More...
 
static void ApplyActiveAreaSettings (EditElementHandleR eeh, int fillMode)
 Update the supplied element to the current active fill and area settings using IAreaFillPropertiesEdit. More...
 
static bool ApplyActiveAreaFill (EditElementHandleR eeh, int fillMode)
 Apply the active solid or gradient fill to the supplied element. More...
 
static bool ApplyActiveSolidFill (EditElementHandleR eeh)
 Apply the active solid fill to the supplied element. More...
 
static bool ApplyActiveGradientFill (EditElementHandleR eeh)
 Apply the active gradient fill to the supplied element. More...
 
static bool ApplyActivePattern (EditElementHandleR eeh, PatternParamsP paramsP, DwgHatchDefLineP hatchDefLinesP, int option, DPoint3dP originP, RotMatrixP rMatrix, int line1, int line2, int index=0)
 Apply the active pattern type and settings to the supplied element. More...
 

Member Function Documentation

static bool ApplyActiveAreaFill ( EditElementHandleR  eeh,
int  fillMode 
)
static

Apply the active solid or gradient fill to the supplied element.

Parameters
[in]eehThe element to modify.
[in]fillMode0 = none, 1 = opaque fill, -1 to use the active fill settings.
Returns
true if element was updated.
See also
AddSolidFill AddGradientFill
static void ApplyActiveAreaSettings ( EditElementHandleR  eeh,
int  fillMode 
)
static

Update the supplied element to the current active fill and area settings using IAreaFillPropertiesEdit.

Note
: Does nothing if model of EditElementHandle is not ACTIVEMODEL.
Remarks
Required Library : mdlbltin.lib
static bool ApplyActiveGradientFill ( EditElementHandleR  eeh)
static

Apply the active gradient fill to the supplied element.

Parameters
[in]eehThe element to modify.
Returns
true if element was updated.
See also
AddGradientFill
static bool ApplyActivePattern ( EditElementHandleR  eeh,
PatternParamsP  paramsP,
DwgHatchDefLineP  hatchDefLinesP,
int  option,
DPoint3dP  originP,
RotMatrixP  rMatrix,
int  line1,
int  line2,
int  index = 0 
)
static

Apply the active pattern type and settings to the supplied element.

Parameters
[in]eehThe element to modify.
[in]paramsPpattern params or NULL.
[in]hatchDefLinesPDWG hatch definition or NULL.
[in]optionpattern type: PATTERN_HATCH, PATTERN_CROSSHATCH, or PATTERN_AREA, used if paramsP is NULL.
[in]originPpattern origin or NULL.
[in]rMatrixpattern rotation or NULL.
[in]line1Multiline specific profile index if patterning between specific profile lines.
[in]line2Multiline specific profile index if patterning between specific profile lines.
[in]indexPattern index (only for multilines).
Returns
true if element was updated.
See also
AddPattern
static void ApplyActiveSettings ( EditElementHandleR  eeh)
static

Update the supplied element to the current active settings.

Sets level, color, style, weight, class, transparency, and display priority (2d only).

Note
: Does nothing if model of EditElementHandle is not ACTIVEMODEL.
Remarks
Required Library : mdlbltin.lib
static bool ApplyActiveSolidFill ( EditElementHandleR  eeh)
static

Apply the active solid fill to the supplied element.

Parameters
[in]eehThe element to modify.
Returns
true if element was updated.
See also
AddSolidFill

The documentation for this struct was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.