Hexagon Geospatial
MENU

Developers Knowledge Base

GeoMedia, a comprehensive and dynamic GIS, extracts compelling intelligence from geospatial data and integrates it to present actionable information.
Showing results for 
Search instead for 
Do you mean 

GeoMedia Desktop API AreaStyle Object FillType Property with Style Fill Type Constants

by Anonymous on ‎03-13-2017 12:42 PM (1,129 Views)

 

 

The FillType property of the Area Style specifies a Microsoft fill mode to be used to fill the contents of an area feature. The Behavior Type is Constant or Dynamic, the Node Location is Leaf node, the Animation is Standard, and the default value is gmgroFillTypeSolid.

 

DataType -- Long

 

 

The StyleFillTypeConstants are:

 

gmgroFillTypeSolid = -1 - Represents the no-hatching case.

gmgroFillTypeHorizontal = 0

gmgroFillTypeVertical = 1

gmgroFillTypeForwardDiagonal = 2

gmgroFillTypeBackwardDiagonal = 3

gmgroFillTypeCross = 4

gmgroFillTypeDiagonalCross = 5

gmgroFillType05Percent = 6

gmgroFillType10Percent = 7

gmgroFillType20Percent = 8

gmgroFillType25Percent = 9

gmgroFillType30Percent = 10

gmgroFillType40Percent = 11

gmgroFillType50Percent = 12

gmgroFillType60Percent = 13

gmgroFillType70Percent = 14

gmgroFillType75Percent = 15

gmgroFillType80Percent = 16

gmgroFillType90Percent = 17

gmgroFillTypeLightDownwardDiagonal = 18

gmgroFillTypeLightUpwardDiagonal = 19

gmgroFillTypeDarkDownwardDiagonal = 20

gmgroFillTypeDarkUpwardDiagonal = 21

gmgroFillTypeWideDownwardDiagonal = 22

gmgroFillTypeWideUpwardDiagonal = 23

gmgroFillTypeLightVertical = 24

gmgroFillTypeLightHorizontal = 25

gmgroFillTypeNarrowVertical = 26

gmgroFillTypeNarrowHorizontal = 27

gmgroFillTypeDarkVertical = 28

gmgroFillTypeDarkHorizontal = 29

gmgroFillTypeDashedDownwardDiagonal = 30

gmgroFillTypeDashedUpwardDiagonal = 31

gmgroFillTypeDashedHorizontal = 32

gmgroFillTypeDashedVertical = 33

gmgroFillTypeSmallConfetti = 34

gmgroFillTypeLargeConfetti = 35

gmgroFillTypeZigZag = 36

gmgroFillTypeWave = 37

gmgroFillTypeDiagonalBrick = 38

gmgroFillTypeHorizontalBrick = 39

gmgroFillTypeWeave = 40

gmgroFillTypePlaid = 41

gmgroFillTypeDivot = 42

gmgroFillTypeDottedGrid = 43

gmgroFillTypeDottedDiamond = 44

gmgroFillTypeShingle = 45

gmgroFillTypeTrellis = 46

gmgroFillTypeSphere = 47

gmgroFillTypeSmallGrid = 48

gmgroFillTypeSmallCheckerBoard = 49

gmgroFillTypeLargeCheckerBoard = 50

gmgroFillTypeOutlinedDiamond = 51

gmgroFillTypeSolidDiamond = 52


The hatch fills constructed by Microsoft do not scale as you zoom in and out. The hatch fills are done in device units.

 

For 3D styles, the fill type value is treated as gmgroFillTypeSolid, regardless of the FillType property value.

 

 

 

Sample VB.NET custom application code statements setting Fill Style on an Area style:

 

Dim oSS As New StyleService
Dim oSD As StyleDefinition


Dim objStyleB As New StyleDefinition 'Boundary Style of the Area
Dim objStyleF As New StyleDefinition 'Fill Style of the Area 

 


oSS.GetStyle ("Area Style", oSD)

 

'Set the Boundary Style of the Area Style
Set objStyleB = oSD.StyleDefinitions(0).StyleDefinitions(0)

objStyleB.StyleProperties(gmgroPropertyUnitType).Value = gmsStyleUnitsView
objStyleB.StyleProperties(gmgroPropertyWidth).Value = 2


'get the simple line style to define the line type as dashdot
objStyleB.StyleProperties(gmgroPropertySequenceType).Value = gmgroSequenceTypeMediumDashDot

 

'Set the Fill Style -- FillType and FillMode of the Area Style
Set objStyleF = oSD.StyleDefinitions(1).StyleDefinitions(0)
objStyleF.StyleProperties(gmgroPropertyColor).Value = &HE0E0E0
objStyleF.StyleProperties(gmgroPropertyFillType).Value = gmgroFillTypeSolidDiamond

Overview
Contributors