Class WinFormsBaseFlavorElement
public class WinFormsBaseFlavorElement : Win32FlavorElement
- Inheritance
-
WinFormsBaseFlavorElement
- Derived
- Inherited Members
Constructors
WinFormsBaseFlavorElement(IntPtr)
protected WinFormsBaseFlavorElement(IntPtr handle)
Parameters
handleIntPtr
WinFormsBaseFlavorElement(IntPtr, string)
protected WinFormsBaseFlavorElement(IntPtr handle, string flavorName)
Parameters
Methods
CanReplace(FlavorElement)
Returns a value specifying if this flavor element can replace elem.
public override bool CanReplace(FlavorElement flavorElem)
Parameters
flavorElemFlavorElement
Returns
- bool
Trueif this flavor element can replaceelem, otherwisefalse.
Remarks
The base method returns true if this flavor element IsEqual(FlavorElement)
to elem.
FromHandle(IntPtr, out TechnologyLimitation)
protected static WinFormsBaseFlavorElement FromHandle(IntPtr handle, out TechnologyLimitation limitation)
Parameters
handleIntPtrlimitationTechnologyLimitation
Returns
GetAttributeValue(Element, string)
Needs to be implemented for attribute value read access.
public override object GetAttributeValue(Element element, string name)
Parameters
Returns
- object
The attribute value.
GetControlNameByWindowMessage(out TechnologyLimitation)
protected string GetControlNameByWindowMessage(out TechnologyLimitation limitation)
Parameters
limitationTechnologyLimitation
Returns
GetElementCapabilities(Element, out Role, out string[], out string)
Supplies the role, a list of capabilities and a preferred capability names to the caller. This method called when building a new element from the flavor element.
public override void GetElementCapabilities(Element parent, out Role role, out string[] capabilities, out string preferredCap)
Parameters
parentElementThe parent element of the element to be constructed. (for reference only)
roleRoleThe role the element should have.
capabilitiesstring[]The list of capabilities the element should have.
preferredCapstringThe preferred capability the element should have.
GetRuntimeTokenValues()
Gets the runtime token values. This must be implemented by the flavors.
protected override object[] GetRuntimeTokenValues()
Returns
- object[]
A collection of objects representing a runtime token.
ReplaceEmptyString(string)
protected static string ReplaceEmptyString(string value)
Parameters
valuestring