Click here to Skip to main content
15,891,375 members
Articles / Productivity Apps and Services / Microsoft Office

RefEdit Emulation for .NET

Rate me:
Please Sign up or sign in to vote.
4.75/5 (14 votes)
27 Oct 2012CPOL6 min read 92.2K   3.8K   29  
A simple implementation of a ref edit control for .NET
<?xml version="1.0"?>
<doc>
<assembly>
<name>
Excel2007RefEdit
</name>
</assembly>
<members>
<member name="T:LeafCreations.RefEditState">
	<summary>
 This structure is used by the Resize method to store Parent and Control dimensions.
 </summary>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.ExcelConnector">
	<summary>
 This connections the control to an instance of Excel.
 </summary>
	<value></value>
	<returns></returns>
	<remarks>It is not visible in the controls PropertyGrid.</remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.RefEditRightToLeft">
	<summary>
 Indicates whether the component should draw right-to-left for RTL languages.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.RefEditFont">
	<summary>
 The font used to display text in the RefEdit control.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.RefEditForecolor">
	<summary>
 The foreground color of this RefEdit control, which is used to display text.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.Address">
	<summary>
 The RefEdit Controls displayed range.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.IncludeSheetName">
	<summary>
 Indicates if the worksheet name should be included in the selected range.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.ShowRowAbsoluteIndicator">
	<summary>
 Shows the row absolute indicator ($) in the selected range.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.ShowColumnAbsoluteIndicator">
	<summary>
 Shows the column absolute indicator ($) in the selected range.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.FlatAppearance">
	<summary>
 For buttons whose FlatStyle is FlatStyle.Flat, determines the appearance of the border and the colors used to indicate check state and mouse state.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.DropButtonFlatStyle">
	<summary>
 Determines the appearance of the control when a user moves the mouse over the control and clicks.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.ImageMinimized">
	<summary>
 The image displayed when the control has been minimized.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:LeafCreations.Excel2007RefEdit.ImageMaximized">
	<summary>
 The image displayed when the control has been maximized.
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="E:LeafCreations.Excel2007RefEdit.Changed">
	<summary>
 Event is fired after a selection has been made.
 </summary>
	<remarks></remarks>
</member><member name="E:LeafCreations.Excel2007RefEdit.DropButtonClicked">
	<summary>
 Event is fired after the Dropbutton has been clicked.
 </summary>
	<remarks></remarks>
</member><member name="E:LeafCreations.Excel2007RefEdit.AfterResize">
	<summary>
 Event is fired after the control has been minimized/maximized using the DropButton.
 </summary>
	<remarks></remarks>
</member><member name="E:LeafCreations.Excel2007RefEdit.BeforeResize">
	<summary>
 Event is fired before the control has been minimized/maximized using the DropButton.
 </summary>
	<remarks>This event can be cancelled.</remarks>
</member><member name="T:LeafCreations.Excel2007RefEdit.WriteValue">
	<summary>
 Used to manage cross threading.
 </summary>
	<param name="value"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.SelectionChange(Microsoft.Office.Interop.Excel.Range)">
	<summary>
 Internal method that handles the xlSheet.SelectionChange event.
 </summary>
	<param name="target"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.WriteData(System.String)">
	<summary>
 This method writes the value to the textbox and Address property.
 </summary>
	<param name="value"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.txtAddress_Enter(System.Object,System.EventArgs)">
	<summary>
 Maintains the Handler to the SelectionChange event.
 </summary>
	<param name="sender"></param>
	<param name="e"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.txtAddress_Leave(System.Object,System.EventArgs)">
	<summary>
 Removes the Handler once the textbox is no longer in use.
 </summary>
	<param name="sender"></param>
	<param name="e"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.txtAddress_PreviewKeyDown(System.Object,System.Windows.Forms.PreviewKeyDownEventArgs)">
	<summary>
 Maintains the resize of the control if applicable.
 </summary>
	<param name="sender"></param>
	<param name="e"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.btnState_Click(System.Object,System.EventArgs)">
	<summary>
 Maintains the resize of the control.
 </summary>
	<param name="sender"></param>
	<param name="e"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.OnBeforeResize(LeafCreations.EventArgs.BeforeResizeEventArgs)">
	<summary>
 Executes prior to the resize occuring. Allowing for the chance of the resize event to be cancelled.
 </summary>
	<param name="e"></param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit._Resize">
	<summary>
 This method minimizes/maximizes the control based on its current display state.
 </summary>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit._NAR(System.Object)">
	<summary>
 Releases a COM object.
 </summary>
	<param name="ComObj">The COM object to be released and disposed.</param>
	<remarks></remarks>
</member><member name="M:LeafCreations.Excel2007RefEdit.Excel2007RefEdit_Disposed(System.Object,System.EventArgs)">
	<summary>
 When the control is disposed, make sure all the COM Objects are disposed of and the handlers removed.
 </summary>
	<param name="sender"></param>
	<param name="e"></param>
	<remarks></remarks>
</member><member name="T:LeafCreations.EventArgs.AfterResizeEventArgs">
	<summary>
 Event Args related to the AfterResize Event.
 </summary>
	<remarks></remarks>
</member><member name="T:LeafCreations.EventArgs.BeforeResizeEventArgs">
	<summary>
 Event Args related to the BeforeResize Event.
 </summary>
	<remarks></remarks>
</member><member name="P:LeafCreations.My.Resources.Resources.ResourceManager">
	<summary>
  Returns the cached ResourceManager instance used by this class.
</summary>
</member><member name="P:LeafCreations.My.Resources.Resources.Culture">
	<summary>
  Overrides the current thread's CurrentUICulture property for all
  resource lookups using this strongly typed resource class.
</summary>
</member><member name="T:LeafCreations.My.Resources.Resources">
	<summary>
  A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
</members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I am a .NET/Office/SQL programmer. Although by day I work for as a software developer for a big distribution company, by night I enjoy creating things. My major nocturnal project is Office Ribbon Editor (http://www.leafcreations.org).

I have dabbled in such languages as java, c, c++, php, cf, objective C and even cobol. At this moment, I am sticking with the .NET languages.

Comments and Discussions