Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlLocalizerErrorNotifyEventArgs.cs
- EdmProviderManifest.cs
- ExecutionContext.cs
- GeometryHitTestResult.cs
- HtmlTable.cs
- PeerTransportCredentialType.cs
- PieceNameHelper.cs
- CodeSubDirectoriesCollection.cs
- StrokeCollection.cs
- Lazy.cs
- HtmlSelectionListAdapter.cs
- Int16Storage.cs
- DCSafeHandle.cs
- ObjectDataSourceEventArgs.cs
- ZipFileInfoCollection.cs
- DataGridSortCommandEventArgs.cs
- DataColumnMappingCollection.cs
- AutomationProperties.cs
- HtmlEmptyTagControlBuilder.cs
- XmlSchemaSimpleTypeRestriction.cs
- TextProperties.cs
- CryptoStream.cs
- MediaCommands.cs
- AttributeCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TdsParserStaticMethods.cs
- TextUtf8RawTextWriter.cs
- XmlSchemaInferenceException.cs
- DesignerAttribute.cs
- SignatureTargetIdManager.cs
- UIPermission.cs
- ApplicationBuildProvider.cs
- TableRowCollection.cs
- DefaultBindingPropertyAttribute.cs
- MatrixAnimationUsingPath.cs
- RewritingValidator.cs
- NativeStructs.cs
- _NestedSingleAsyncResult.cs
- StreamWithDictionary.cs
- LayoutExceptionEventArgs.cs
- BmpBitmapEncoder.cs
- ObjectDataSourceMethodEventArgs.cs
- FaultContractInfo.cs
- __Filters.cs
- ToolStripDropDownClosedEventArgs.cs
- KeyNotFoundException.cs
- Geometry3D.cs
- ConcurrencyBehavior.cs
- ClientTargetCollection.cs
- TemplatedWizardStep.cs
- SortedList.cs
- XPathSelectionIterator.cs
- DocumentOrderComparer.cs
- StylusCollection.cs
- LambdaReference.cs
- SplineKeyFrames.cs
- Typography.cs
- SystemIcmpV6Statistics.cs
- CollectionCodeDomSerializer.cs
- MatrixTransform3D.cs
- LocalValueEnumerator.cs
- Timeline.cs
- CommandSet.cs
- AbstractSvcMapFileLoader.cs
- SelectionProcessor.cs
- CheckBoxBaseAdapter.cs
- PropertiesTab.cs
- DocumentGrid.cs
- HttpModuleCollection.cs
- StylusPoint.cs
- FamilyTypeface.cs
- LoginName.cs
- InfoCardX509Validator.cs
- PropertyGeneratedEventArgs.cs
- HttpHandlerActionCollection.cs
- CustomPopupPlacement.cs
- RowSpanVector.cs
- TextDecorationCollection.cs
- SmtpReplyReader.cs
- PlatformNotSupportedException.cs
- ToolStripRenderEventArgs.cs
- ObjectListComponentEditor.cs
- QuotedPrintableStream.cs
- XmlQueryContext.cs
- SectionVisual.cs
- SqlNotificationRequest.cs
- LostFocusEventManager.cs
- CacheEntry.cs
- TypeToken.cs
- FlowDocumentReader.cs
- QueryOutputWriter.cs
- ToolbarAUtomationPeer.cs
- OneWayChannelListener.cs
- DataGridViewTopLeftHeaderCell.cs
- WorkflowDesigner.cs
- TextInfo.cs
- RtfControlWordInfo.cs
- AsyncOperation.cs
- Error.cs
- XmlAnyAttributeAttribute.cs